From f227eb3ce104d92dd21384e21ababb8b6e016011 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Wed, 9 Jan 2013 18:04:12 +0100 Subject: [PATCH] Using pkg-config to fix compiling in some cases --- src/transport/Makefile | 3 ++- src/transport/project.conf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/transport/Makefile b/src/transport/Makefile index 351b7ea..2104028 100644 --- a/src/transport/Makefile +++ b/src/transport/Makefile @@ -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 diff --git a/src/transport/project.conf b/src/transport/project.conf index 44196ac..39284e1 100644 --- a/src/transport/project.conf +++ b/src/transport/project.conf @@ -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]