Ticket #69 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Platform: CPU:

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

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

Change History

in reply to: ↑ description   Changed 4 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.

  Changed 4 years ago by wrobell

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

  Changed 4 years ago by neteler

  • milestone changed from 6.3.0 to 6.4.0

Changed 4 years ago by neteler

path locally uploaded

follow-up: ↓ 5   Changed 4 years ago by neteler

Developers, can we apply this patch?

Markus

in reply to: ↑ 4   Changed 4 years ago by glynn

Replying to neteler:

Developers, can we apply this patch?

I think so.

  Changed 4 years ago by neteler

  • status changed from new to closed
  • resolution set to fixed

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

Markus

Note: See TracTickets for help on using tickets.