openbsd-ports/lang/luajit/patches/patch-src_Makefile
2012-10-27 14:05:33 +00:00

39 lines
966 B
Plaintext

$OpenBSD: patch-src_Makefile,v 1.1.1.1 2012/10/27 14:05:33 abieber Exp $
--- src/Makefile.orig Tue Oct 16 19:30:00 2012
+++ src/Makefile Sat Oct 20 10:57:31 2012
@@ -304,6 +304,11 @@ ifeq (iOS,$(TARGET_SYS))
TARGET_DYNXLDOPTS=
TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER)
else
+ifeq (OpenBSD,$(TARGET_SYS))
+ TARGET_XSHLDFLAGS= -shared -fPIC
+ TARGET_XCFLAGS+= -fno-stack-protector
+ TARGET_STRIP= @:
+else
ifneq (,$(findstring stack-protector,$(shell $(TARGET_CC) -dumpspecs)))
TARGET_XCFLAGS+= -fno-stack-protector
endif
@@ -321,6 +326,7 @@ else
endif
endif
endif
+endif
ifneq ($(HOST_SYS),$(TARGET_SYS))
ifeq (Windows,$(TARGET_SYS))
@@ -549,10 +555,10 @@ endif
endif
endif
-Q= @
-E= @echo
-#Q=
-#E= @:
+#Q= @
+#E= @echo
+Q=
+E= @:
##############################################################################
# Make targets.