Using pkg-config to fix compiling in some cases

This commit is contained in:
Pierre Pronchery 2013-01-09 18:04:12 +01:00
parent a582ef265d
commit f227eb3ce1
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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]