diff options
author | ben <ben> | 2004-01-07 15:12:59 +0000 |
---|---|---|
committer | ben <ben> | 2004-01-07 15:12:59 +0000 |
commit | 7dfd81d0590c7ad3d4e538e8e929a53ebda459a2 (patch) | |
tree | ff575e4f350962c44b8fa7dee01f262ea6481bd3 /archivers/upx/patches | |
parent | f83b7258503a0170dea28c9e3dda127d0f73dc3a (diff) | |
download | pkgsrc-7dfd81d0590c7ad3d4e538e8e929a53ebda459a2.tar.gz |
Initial import of upx-1.24, based on wip/upx and the package provided by
fab@gnux.info in PR 23903. This is the "Ultimate Packer for eXecutables".
This will build and run on NetBSD, but it only operates on the binary
formats of other systems.
Diffstat (limited to 'archivers/upx/patches')
-rw-r--r-- | archivers/upx/patches/patch-aa | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/archivers/upx/patches/patch-aa b/archivers/upx/patches/patch-aa new file mode 100644 index 00000000000..c40ddc1c960 --- /dev/null +++ b/archivers/upx/patches/patch-aa @@ -0,0 +1,43 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/01/07 15:12:59 ben Exp $ +--- ../upx-1.24/src/Makefile 2002-10-28 11:43:34.000000000 +0100 ++++ src/Makefile 2003-12-27 22:03:08.000000000 +0100 +@@ -187,6 +187,39 @@ LDFLAGS += $(LDLIBDIRS) + + + ### ++### NetBSD ++### ++ ++ifeq ($(target),netbsd) ++override arch := $(shell uname -m | sed -e 's/^i[3456789]86$$/i386/') ++DEFS += '-DUPX_CONFIG_H="config_h/linux.h"' ++DEFS += -D_FILE_OFFSET_BITS=64 -DWITH_UCL=1 ++LDLIBS += -lucl ++ifeq ($(arch),i386) ++ CC += -march=i386 -mcpu=i586 ++endif ++ ++ifeq (1,2) # checkergcc ++ CC = checkergcc ++ CXX = checkerg++ ++else ++ifeq ($(DEBUG),1) ++ CFLAGS += -O0 -g ++else ++ ##LDFLAGS += -static ++ STUBEDIT_EXE = objcopy -S -R .comment -R .note $@ ++ ifeq ($(arch),i386) ++ STUBIFY_EXE = perl $(srcdir)/stub/scripts/brandelf.pl $@ ++ CHMOD_EXE = chmod 755 $@ ++ endif ++endif ++endif ++LDFLAGS += -L$(PREFIX)/lib -Wl,-rpath=$(PREFIX)/lib ++CFLAGS += -I$(PREFIX)/include ++CC = g++ ++endif # netbsd ++ ++### + ### Linux + ### + |