From b8b2ca14f4fe1b628b478bab0cf212d2d87b6553 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Fri, 15 Aug 2014 17:04:41 +0000 Subject: [PATCH] Fix build on -current. --- devel/elfsh/files/patch-vm__Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/devel/elfsh/files/patch-vm__Makefile b/devel/elfsh/files/patch-vm__Makefile index 30e1c39b8295..35b46a04da35 100644 --- a/devel/elfsh/files/patch-vm__Makefile +++ b/devel/elfsh/files/patch-vm__Makefile @@ -1,5 +1,5 @@ ---- vm/Makefile.orig 2003-08-21 09:23:17.000000000 +0800 -+++ vm/Makefile 2011-10-03 16:34:23.000000000 +0800 +--- vm/Makefile.orig 2003-08-20 21:23:17.000000000 -0400 ++++ vm/Makefile 2014-08-15 13:03:43.000000000 -0400 @@ -19,8 +19,8 @@ #LDASMOPT = -lasm @@ -11,7 +11,7 @@ # End of configurable Makefile -@@ -36,11 +36,11 @@ SRC = grammar.c disasm.c dyn.c hdr.c m +@@ -36,15 +36,15 @@ OBJ = $(SRC:.c=.o) SRC_DYN = elfsh_etdyn.c OBJ_DYN = $(SRC_DYN:.c=.o) @@ -25,3 +25,8 @@ -I../libhash/include/ -I../libelfsh/include/ \ -DELFSH_INTERN $(DLOPT) $(ASMOPT) $(READLNOPT) +-LDFLAGS = -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \ ++LDFLAGS += -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \ + -rdynamic -g3 $(LDASMOPT) $(LDREADLNOPT) $(DLOPT)\ + $(EXTRAOPT) +