Skip to content

Commit

Permalink
Fix default build parameters not properly linking to libexpat
Browse files Browse the repository at this point in the history
  • Loading branch information
mwild1 committed Apr 2, 2014
1 parent d265e19 commit 33744ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LUA_CDIR ?= /usr/lib/lua/$(LUA_V)
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)
Expand All @@ -24,7 +24,7 @@ lib: src/$(LIBNAME)

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)
Expand Down

0 comments on commit 33744ae

Please sign in to comment.