openbsd-ports/devel/luarexlib/patches/patch-src_common_mak
2009-09-09 18:02:01 +00:00

18 lines
456 B
Plaintext

$OpenBSD: patch-src_common_mak,v 1.1 2009/09/09 18:02:01 jolan Exp $
--- src/common.mak.orig Sat Jun 14 20:11:08 2008
+++ src/common.mak Wed Sep 9 12:13:00 2009
@@ -3,11 +3,11 @@
V = 2.4
DEFS = -DREX_OPENLIB=luaopen_$(TRG) -DREX_LIBNAME=\"$(TRG)\"
-CFLAGS = $(MYCFLAGS) $(DEFS) $(INC)
+CFLAGS+= $(MYCFLAGS) $(DEFS) $(INC)
TRG_AR = lib$(TRG).a
TRG_SO = $(TRG).so
LD = ld
-LDFLAGS= -shared
+LDFLAGS= -fPIC -shared
all: $(TRG_AR) $(TRG_SO)