Fix default build parameters not properly linking to libexpat 1.3.0

Thu, 03 Apr 2014 00:13:58 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 03 Apr 2014 00:13:58 +0100
changeset 21
1adb0c435b54
parent 20
1506d4582d44
child 22
dacbae98c3e2

Fix default build parameters not properly linking to libexpat

Makefile file | annotate | diff | comparison | revisions
--- a/Makefile	Thu Apr 03 00:01:12 2014 +0100
+++ b/Makefile	Thu Apr 03 00:13:58 2014 +0100
@@ -9,7 +9,7 @@
 T		= lxp
 LIBNAME		= $(T).so
 
-COMMON_CFLAGS	 = -g -pedantic -Wall -O2 -shared -fPIC -DPIC -ansi
+COMMON_CFLAGS	 = -g -pedantic -Wall -O2 -fPIC -DPIC -ansi
 LUA_INC		?= -I/usr/include/lua$(LUA_V)
 EXPAT_INC	?= -I/usr/include
 CF		 = $(LUA_INC) $(EXPAT_INC) $(COMMON_CFLAGS) $(CFLAGS)
@@ -24,7 +24,7 @@
 
 src/$(LIBNAME):
 	export MACOSX_DEPLOYMENT_TARGET="10.3";
-	$(CC) $(CF) $(LF) -o $@ src/$(T)lib.c
+	$(CC) $(CF) -o $@ src/$(T)lib.c $(LF)
 
 install:
 	$(INSTALL_PROGRAM) -D src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)

mercurial