Add missing build_depends.

Set CPPFLAGS, CFLAGS, LDFLAGS in a consistent way (re-add -fPIC to CFLAGS
which was removed on first import).

ok jasper@
This commit is contained in:
ajacoutot 2009-08-31 11:48:29 +00:00
parent 7a789b76c8
commit 4c5ebf3217
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/30 16:40:16 jasper Exp $ # $OpenBSD: Makefile,v 1.2 2009/08/31 11:48:29 ajacoutot Exp $
COMMENT= Device Tree Compiler COMMENT= Device Tree Compiler
@ -17,8 +17,10 @@ MASTER_SITES= http://nedbsd.eu/~jasper/distfiles/
WANTLIB += c WANTLIB += c
BUILD_DEPENDS= ::devel/bison
USE_GMAKE= Yes USE_GMAKE= Yes
MAKE_ENV+= LDFLAGS="-fPIC" MAKE_ENV+= V=1
REGRESS_TARGET= check REGRESS_TARGET= check

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2009/08/30 16:40:16 jasper Exp $ $OpenBSD: patch-Makefile,v 1.2 2009/08/31 11:48:29 ajacoutot Exp $
--- Makefile.orig Sun Aug 30 16:46:06 2009 --- Makefile.orig Sun Aug 30 16:46:06 2009
+++ Makefile Sun Aug 30 17:14:33 2009 +++ Makefile Sun Aug 30 17:14:33 2009
@@ -15,8 +15,8 @@ EXTRAVERSION = @@ -15,8 +15,8 @@ EXTRAVERSION =
@ -7,8 +7,8 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2009/08/30 16:40:16 jasper Exp $
-CPPFLAGS = -I libfdt -CPPFLAGS = -I libfdt
-CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual -CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual
+CPPFLAGS ?= -I libfdt +CPPFLAGS += -I libfdt
+CFLAGS ?= -Wall -fPIC -Wpointer-arith -Wcast-qual +CFLAGS += -Wall -fPIC -Wpointer-arith -Wcast-qual
BISON = bison BISON = bison
LEX = flex LEX = flex