openbsd-ports/devel/dtc/patches/patch-Makefile
ajacoutot 4c5ebf3217 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@
2009-08-31 11:48:29 +00:00

30 lines
718 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2009/08/31 11:48:29 ajacoutot Exp $
--- Makefile.orig Sun Aug 30 16:46:06 2009
+++ Makefile Sun Aug 30 17:14:33 2009
@@ -15,8 +15,8 @@ EXTRAVERSION =
LOCAL_VERSION =
CONFIG_LOCALVERSION =
-CPPFLAGS = -I libfdt
-CFLAGS = -Wall -g -Os -fPIC -Wpointer-arith -Wcast-qual
+CPPFLAGS += -I libfdt
+CFLAGS += -Wall -fPIC -Wpointer-arith -Wcast-qual
BISON = bison
LEX = flex
@@ -198,12 +198,12 @@ clean: libfdt_clean tests_clean
# Generic compile rules
#
%: %.o
- @$(VECHO) LD $@
+ @$(VECHO) LD $(LDFLAGS) $@
$(LINK.c) -o $@ $^
%.o: %.c
@$(VECHO) CC $@
- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
+ $(CC) $(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -o $@ -c $<
%.o: %.S
@$(VECHO) AS $@