summaryrefslogtreecommitdiff
path: root/archivers/upx/files/patch-src_Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-08-30 19:53:21 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-08-30 19:53:21 +0000
commit88fe79d6da67eb1ca22398828915dcfa4159cda3 (patch)
treedd8d8cc45a369478ab3cf163f0ceef282cca92a8 /archivers/upx/files/patch-src_Makefile
parentsysutils/ipfs-go: Changes to UIDs and GIDs. (diff)
archivers/upx: Update 3.91 -> 3.94
PR: 230089 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: fjoe (maintainer's timeout; 33 days)
Diffstat (limited to 'archivers/upx/files/patch-src_Makefile')
-rw-r--r--archivers/upx/files/patch-src_Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/archivers/upx/files/patch-src_Makefile b/archivers/upx/files/patch-src_Makefile
index 17c9907cfea8..0e8e6d2398ea 100644
--- a/archivers/upx/files/patch-src_Makefile
+++ b/archivers/upx/files/patch-src_Makefile
@@ -1,6 +1,6 @@
---- src/Makefile.orig 2013-09-30 15:51:00 UTC
+--- src/Makefile.orig 2017-05-12 11:01:20 UTC
+++ src/Makefile
-@@ -55,7 +55,7 @@ upx_OBJECTS := $(notdir $(upx_SOURCES:.c
+@@ -48,7 +48,7 @@ endif
# we need UCL and zlib - you can set envvar UPX_UCLDIR
ifneq ($(wildcard $(UPX_UCLDIR)/include/ucl/ucl.h),)
INCLUDES += -I$(UPX_UCLDIR)/include
@@ -8,4 +8,17 @@
+LIBS += -L$(UPX_UCLDIR)/lib
endif
LIBS += -lucl -lz
- # you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK
+ # LZMA from https://github.com/upx/upx-lzma-sdk
+@@ -62,9 +62,9 @@ CXXFLAGS_OPTIMIZE ?= -O2
+ endif
+ CXXFLAGS += $(CXXFLAGS_OPTIMIZE)
+ # protect against security threats caused by misguided C++ compiler "optimizations"
+-ifeq ($(findstring clang,$(CXX)),)
+-CXXFLAGS += -fno-delete-null-pointer-checks
+-endif
++# ifeq ($(findstring clang,$(CXX)),)
++# CXXFLAGS += -fno-delete-null-pointer-checks
++# endif
+ CXXFLAGS += -fno-strict-aliasing -fwrapv
+ CXXFLAGS += -funsigned-char
+ CXXFLAGS += -Wall -W -Wcast-align -Wcast-qual -Wmissing-declarations -Wpointer-arith -Wshadow -Wvla -Wwrite-strings