mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Fix build on -current.
This commit is contained in:
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
|
@ -18,4 +18,7 @@ PLIST_FILES= bin/elf man/man1/elf.1.gz
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile.in
|
@${REINPLACE_CMD} -e 's/gcc/${CC}/g' ${WRKSRC}/src/Makefile.in
|
||||||
|
|
||||||
|
do-build:
|
||||||
|
${DO_MAKE_BUILD} -C ${WRKSRC}/src
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
--- src/Makefile.in.orig 2014-06-07 13:35:52.417434266 +0800
|
--- src/Makefile.in.orig 2003-09-20 10:23:28.000000000 -0400
|
||||||
+++ src/Makefile.in 2014-06-07 13:36:02.841435177 +0800
|
+++ src/Makefile.in 2014-08-15 12:59:59.000000000 -0400
|
||||||
@@ -16,7 +16,7 @@ main.o: main.c ../include/sehdr.h ../in
|
@@ -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
|
$(CC) $(CFLAGS) $(INC) -c main.c
|
||||||
|
|
||||||
install: elf
|
install: elf
|
||||||
|
|
Loading…
Add table
Reference in a new issue