1
0
Fork 0

solaris doesn't automatically include socket,nsl libs

"6. glib2 ... need to add -lsocket to LDFLAGS or else ... fails with undefined symbol ref to "socket""
http://users.sdsc.edu/~glockwood/notes/index.php?note=S9STACK
This commit is contained in:
Charles Phillips 2016-01-25 16:12:05 -08:00
parent aa388bf119
commit 4a57954a17
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ case $target in
CC="gcc -std=gnu99"
CPPFLAGS=" -I/opt/local/include -L/opt/local/lib"
CXXFLAGS="-static-libstdc++ -D_GLIBCXX_USE_C99"
LDFLAGS="-Wl,-rpath,/opt/local/lib -L/opt/local/lib"
LDFLAGS="-Wl,-rpath,/opt/local/lib,-lnsl,-lsocket -L/opt/local/lib"
;;
armv7l-*-linux-gnueabihf)