1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-23 05:26:07 +03:00

Add extra ldflags for solaris

This commit is contained in:
Erik Ekman 2008-07-12 12:42:19 +00:00 committed by Erik Ekman
parent cd91d675ae
commit 081b5b3330
2 changed files with 15 additions and 1 deletions

View File

@ -8,7 +8,7 @@ SERVER = ../bin/iodined
OS = `uname | tr "a-z" "A-Z"` OS = `uname | tr "a-z" "A-Z"`
ARCH = `uname -m` ARCH = `uname -m`
LDFLAGS = -lz LDFLAGS = -lz `sh osflags link`
CFLAGS = -c -g -Wall -D$(OS) -pedantic CFLAGS = -c -g -Wall -D$(OS) -pedantic
all: stateos $(CLIENT) $(SERVER) all: stateos $(CLIENT) $(SERVER)

14
src/osflags Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
case $1 in
link)
case $OSTYPE in
SunOS | solaris)
echo '-lsocket -lnsl';
;;
esac
;;
*)
;;
esac