Opened 16 years ago

Closed 16 years ago

#69 closed defect (fixed)

grass build fails when build with -as-needed linker flag

Reported by: wrobell Owned by: grass-dev@…
Priority: minor Milestone: 6.4.0
Component: Default Version: 6.3.0 RCs
Keywords: Cc:
CPU: Unspecified Platform: Unspecified

Description

grass build fails when build with -as-needed linker flag (see ld manual).

it is simply solved by patch

http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/grass-link.patch

the patch was created by Jakub Bogusz (qboosh at pld-linux dot org) and updated by me for grass 6.3.0RC5.

Attachments (1)

grass-link.patch (1.4 KB ) - added by neteler 16 years ago.
path locally uploaded

Download all attachments as: .zip

Change History (7)

in reply to:  description comment:1 by glynn, 16 years ago

Replying to wrobell:

grass build fails when build with -as-needed linker flag (see ld manual).

it is simply solved by patch

http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/grass-link.patch

This should use $(MATHLIB) rather than -lm.

E.g. -lm won't work on Windows, which doesn't have libm; math functions are in MSVCRT.

comment:2 by wrobell, 16 years ago

i've updated the patch (see above link) to use $(MATHLIB). seems to work.

comment:3 by neteler, 16 years ago

Milestone: 6.3.06.4.0

by neteler, 16 years ago

Attachment: grass-link.patch added

path locally uploaded

comment:4 by neteler, 16 years ago

Developers, can we apply this patch?

Markus

in reply to:  4 comment:5 by glynn, 16 years ago

Replying to neteler:

Developers, can we apply this patch?

I think so.

comment:6 by neteler, 16 years ago

Resolution: fixed
Status: newclosed

Done as r31422 (6.4) and r31423 (trunk).

Markus

Note: See TracTickets for help on using tickets.