aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/luaexpat/files/patch-makefile
blob: b3f6b29101e485d2d133a5b02572efb0e63d8bd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- makefile.orig   2009-06-25 06:07:16.000000000 +0000
+++ makefile    2009-06-25 06:23:06.000000000 +0000
@@ -4,15 +4,11 @@
 
 include $(CONFIG)
 
-ifeq "$(LUA_VERSION_NUM)" "500"
-COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
-endif
-
 OBJS= src/lxplib.o $(COMPAT_O)
 lib: src/$(LIBNAME)
 
 src/$(LIBNAME) : $(OBJS)
-   export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
+   export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) lxplib.o $(COMPAT_O) -lexpat
 
 $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
    $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c