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
|
||||
CPPFLAGSF= -I ../../include
|
||||
CPPFLAGS=
|
||||
CFLAGSF = -W -fPIC
|
||||
CFLAGSF = -W -fPIC `pkg-config --cflags libSystem`
|
||||
CFLAGS = -Wall -g -O2 -pedantic
|
||||
LDFLAGSF= `pkg-config --cflags libSystem`
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
CCSHARED= $(CC) -shared
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
targets=tcp,tcp4,tcp6,template,udp,udp4,udp6
|
||||
cppflags_force=-I ../../include
|
||||
cppflags=
|
||||
cflags_force=-W -fPIC
|
||||
cflags_force=-W -fPIC `pkg-config --cflags libSystem`
|
||||
cflags=-Wall -g -O2 -pedantic
|
||||
ldflags_force=`pkg-config --cflags libSystem`
|
||||
dist=Makefile
|
||||
|
||||
[tcp]
|
||||
|
|
Loading…
Reference in New Issue
Block a user