pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47868: www/libproxy does not compile on Solaris 10



On 29.05.13 23:50, Thomas Klausner wrote:
  Can you fix this by using
  CMAKE_ARGS+=   -DCMAKE_EXE_LINKER_FLAGS:STRING="-lnsl -lsocket"
  in the pkgsrc Makefile (or something similar)?

I tried providing this via environment variable, but that got overwritten...

With this change, technically the package builds (with the ugly fix for the other problem). But: Without the patch, this is the definition found in CMakeCache.txt:

CMAKE_EXE_LINKER_FLAGS:STRING= -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkgsrc/20130422/lib

With the change, this is the definition:

CMAKE_EXE_LINKER_FLAGS:STRING=-lnsl -lsocket

Luckily, libproxy.so does not seem to need any other library from pkgsrc, otherwise the run time linker would have a hard time finding it. So maybe in this case this is a fix, but it is not a general solution that would work in other situations.

--
 Jörn Clausen                             
joern.clausen%uni-bielefeld.de@localhost
 Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
 Universität Bielefeld



Home | Main Index | Thread Index | Old Index