mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-24 16:47:49 +00:00
Add extra ldflags for solaris
This commit is contained in:
parent
30014e6433
commit
6d1a003c1e
@ -8,7 +8,7 @@ SERVER = ../bin/iodined
|
||||
OS = `uname | tr "a-z" "A-Z"`
|
||||
ARCH = `uname -m`
|
||||
|
||||
LDFLAGS = -lz
|
||||
LDFLAGS = -lz `sh osflags link`
|
||||
CFLAGS = -c -g -Wall -D$(OS) -pedantic
|
||||
|
||||
all: stateos $(CLIENT) $(SERVER)
|
||||
|
14
src/osflags
Executable file
14
src/osflags
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
link)
|
||||
|
||||
case $OSTYPE in
|
||||
SunOS | solaris)
|
||||
echo '-lsocket -lnsl';
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user