Using pkg-config to fix compiling in some cases
This commit is contained in:
parent
a582ef265d
commit
f227eb3ce1
|
@ -5,8 +5,9 @@ LIBDIR = $(PREFIX)/lib
|
||||||
CC = cc
|
CC = cc
|
||||||
CPPFLAGSF= -I ../../include
|
CPPFLAGSF= -I ../../include
|
||||||
CPPFLAGS=
|
CPPFLAGS=
|
||||||
CFLAGSF = -W -fPIC
|
CFLAGSF = -W -fPIC `pkg-config --cflags libSystem`
|
||||||
CFLAGS = -Wall -g -O2 -pedantic
|
CFLAGS = -Wall -g -O2 -pedantic
|
||||||
|
LDFLAGSF= `pkg-config --cflags libSystem`
|
||||||
AR = ar
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CCSHARED= $(CC) -shared
|
CCSHARED= $(CC) -shared
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
targets=tcp,tcp4,tcp6,template,udp,udp4,udp6
|
targets=tcp,tcp4,tcp6,template,udp,udp4,udp6
|
||||||
cppflags_force=-I ../../include
|
cppflags_force=-I ../../include
|
||||||
cppflags=
|
cppflags=
|
||||||
cflags_force=-W -fPIC
|
cflags_force=-W -fPIC `pkg-config --cflags libSystem`
|
||||||
cflags=-Wall -g -O2 -pedantic
|
cflags=-Wall -g -O2 -pedantic
|
||||||
|
ldflags_force=`pkg-config --cflags libSystem`
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[tcp]
|
[tcp]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user