diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-16 23:20:39 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-16 23:20:39 +0100 |
commit | c6a51d19c5daf8c9f5888e3ae7e82924b9965465 (patch) | |
tree | 921431fef92108c8ae6141e4f6d391509a3400db /Makefile | |
parent | be51c8398f348149f24e3be4c8563c4e0078aec8 (diff) |
Forgot to add -L. to remaining LDFLAGS
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ OPTIMIZATION?=-O3 ifeq ($(uname_S),SunOS) CFLAGS?=-std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -D__EXTENSIONS__ -D_XPG6 $(ARCH) $(PROF) CCLINK?=-ldl -lnsl -lsocket -lm -lpthread - LDFLAGS?=-L. -Wl,-R,. + LDFLAGS?=-L. -Wl,-R,. DYLIBNAME?=libhiredis.so DYLIB_MAKE_CMD?=$(CC) -G -o ${DYLIBNAME} ${OBJ} STLIBNAME?=libhiredis.a @@ -18,7 +18,7 @@ ifeq ($(uname_S),SunOS) else ifeq ($(uname_S),Darwin) CFLAGS?=-std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF) CCLINK?=-lm -pthread - LDFLAGS?=-Wl,-rpath,. + LDFLAGS?=-L. -Wl,-rpath,. OBJARCH?=-arch i386 -arch x86_64 DYLIBNAME?=libhiredis.dylib DYLIB_MAKE_CMD?=libtool -dynamic -o ${DYLIBNAME} -lm ${DEBUG} - ${OBJ} @@ -27,13 +27,13 @@ else ifeq ($(uname_S),Darwin) else CFLAGS?=-std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF) CCLINK?=-lm -pthread - LDFLAGS?=-Wl,-rpath,. + LDFLAGS?=-L. -Wl,-rpath,. DYLIBNAME?=libhiredis.so DYLIB_MAKE_CMD?=gcc -shared -Wl,-soname,${DYLIBNAME} -o ${DYLIBNAME} ${OBJ} STLIBNAME?=libhiredis.a STLIB_MAKE_CMD?=ar rcs ${STLIBNAME} ${OBJ} endif -CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) +CCOPT= $(CFLAGS) $(CCLINK) DEBUG?= -g -ggdb PREFIX?= /usr/local |