aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-11-03 06:58:44 +0800
committerdes <des@FreeBSD.org>2004-11-03 06:58:44 +0800
commit9c199151897d805832fa2c74ad1ffa628e7bf2c0 (patch)
tree1141827d22385922ef47a43ec9818f1a1865a746 /archivers
parentf1cabb29b107617a426c3cd2f92c787c7919188c (diff)
downloadfreebsd-ports-gnome-9c199151897d805832fa2c74ad1ffa628e7bf2c0.tar.gz
freebsd-ports-gnome-9c199151897d805832fa2c74ad1ffa628e7bf2c0.tar.zst
freebsd-ports-gnome-9c199151897d805832fa2c74ad1ffa628e7bf2c0.zip
Fix -O2 build. If declared static, integrity_identifier is optimized out
since it isn't referenced, so postproc can't find it and the build bombs.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/arj/files/patch-integr.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/arj/files/patch-integr.c b/archivers/arj/files/patch-integr.c
new file mode 100644
index 000000000000..a260af4d008e
--- /dev/null
+++ b/archivers/arj/files/patch-integr.c
@@ -0,0 +1,11 @@
+--- integr.c.orig Thu Mar 28 01:03:00 2002
++++ integr.c Tue Nov 2 23:53:18 2004
+@@ -5,7 +5,7 @@
+ *
+ */
+
+-static char intergrity_identifier[]={0xB0, 0x03, 0xB0, 0x02, 0xB0, 0x03,
++char intergrity_identifier[]={0xB0, 0x03, 0xB0, 0x02, 0xB0, 0x03,
+ 0xB0, 0x04, 0xB0, 0x05,
+ 0x90, 0x90, 0x90, 0x90,
+ 0x90, 0x90, 0x90, 0x90,