1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Fix build on -current.

This commit is contained in:
Adam Weinberger 2014-08-15 17:01:12 +00:00
parent 80a45ad6bf
commit e7aa0ee3bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365001
2 changed files with 18 additions and 3 deletions

View File

@ -18,4 +18,7 @@ PLIST_FILES= bin/elf man/man1/elf.1.gz
post-patch:
@${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile.in
do-build:
${DO_MAKE_BUILD} -C ${WRKSRC}/src
.include <bsd.port.mk>

View File

@ -1,6 +1,18 @@
--- src/Makefile.in.orig 2014-06-07 13:35:52.417434266 +0800
+++ src/Makefile.in 2014-06-07 13:36:02.841435177 +0800
@@ -16,7 +16,7 @@ main.o: main.c ../include/sehdr.h ../in
--- src/Makefile.in.orig 2003-09-20 10:23:28.000000000 -0400
+++ src/Makefile.in 2014-08-15 12:59:59.000000000 -0400
@@ -1,9 +1,9 @@
CC=gcc
-INC=-I../include
+INC=-I../include ${CPPFLAGS}
CFLAGS=@CFLAGS@
PREFIX=@prefix@
BINDIR=$(PREFIX)/bin
-LIBS=@LIBS@
+LIBS=@LIBS@ ${LDFLAGS}
elf: main.o elf.o
$(CC) $(CFLAGS) $(INC) main.o elf.o -o elf $(LIBS)
@@ -16,7 +16,7 @@
$(CC) $(CFLAGS) $(INC) -c main.c
install: elf