summaryrefslogtreecommitdiff
path: root/devel/elfsh/files/patch-libelfsh__Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/elfsh/files/patch-libelfsh__Makefile')
-rw-r--r--devel/elfsh/files/patch-libelfsh__Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/elfsh/files/patch-libelfsh__Makefile b/devel/elfsh/files/patch-libelfsh__Makefile
new file mode 100644
index 000000000000..d4fbc43b566b
--- /dev/null
+++ b/devel/elfsh/files/patch-libelfsh__Makefile
@@ -0,0 +1,15 @@
+--- libelfsh/Makefile.orig 2003-08-21 09:11:03.000000000 +0800
++++ libelfsh/Makefile 2011-10-03 16:33:33.000000000 +0800
+@@ -5,10 +5,10 @@
+ ## Last update Tue Jun 3 09:30:50 2003 mayhem
+ ##
+
+-CC = gcc
++CC ?= gcc
+ RM = rm -f
+ AR = ar rc
+-CFLAGS = -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN
++CFLAGS += -rdynamic -Iinclude -Wall -fPIC -g3 -DELFSH_INTERN
+ SRC = dynamic.c dynsym.c elf.c fixup.c got.c hash.c \
+ interp.c pht.c plt.c section.c sht.c error.c stab.c \
+ symbol.c notes.c reloc.c blocks.c ctors.c dtors.c \