Opened 12 years ago

Closed 11 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 11 years ago.
path locally uploaded

Download all attachments as: .zip

Change History (7)

comment:1 in reply to:  description Changed 12 years ago by glynn

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 Changed 12 years ago by wrobell

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

comment:3 Changed 12 years ago by neteler

Milestone: 6.3.06.4.0

Changed 11 years ago by neteler

Attachment: grass-link.patch added

path locally uploaded

comment:4 Changed 11 years ago by neteler

Developers, can we apply this patch?

Markus

comment:5 in reply to:  4 Changed 11 years ago by glynn

Replying to neteler:

Developers, can we apply this patch?

I think so.

comment:6 Changed 11 years ago by neteler

Resolution: fixed
Status: newclosed

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

Markus

Note: See TracTickets for help on using tickets.