Port build appends -lm repeatedly

Kris Kennaway kris at obsecurity.org
Tue Apr 12 15:39:57 PDT 2005

On Tue, Apr 12, 2005 at 11:30:50AM -0600, Jon Drews wrote:
> Port GSL-1.6
> 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 31
> gcc version 3.4.2 [FreeBSD] 20040728
> Hi:
>   I am testing math/gsl before sending it in. I captured the output of
> the make to look for any problems or aberrations. I did find this one
> minor glitch. The final line of the make contains repeated math
> library calls:
> cc -O2 -pipe -march=pentiumpro -o .libs/gsl-histogram gsl-histogram.o
> .libs/libgsl.so -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
>   -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm
> -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm cblas/.libs/libg
> slcblas.so -lm -lm  -Wl,--rpath -Wl,/usr/local/lib
> 1) are the repeated -lm a problem


> 2) how can I fix it ? 

You'd need to go digging in the gsl build infrastructure to first find
out why it's happening; this should tell you how to fix it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050412/bcf507fb/attachment.bin

More information about the freebsd-ports mailing list