aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorChristopher Celio <celio@eecs.berkeley.edu>2012-08-30 17:48:17 -0700
committerChristopher Celio <celio@eecs.berkeley.edu>2012-08-30 17:48:17 -0700
commit6941d5f6b0929517a1bfc410b2a97ff0574716a4 (patch)
treeba68b1aa4e32006031b9f1236dc60476e2358b57 /Makefile.in
parentd3a541bcee38f15fc2aee3edfc1bc6f5b6e9b1be (diff)
downloadpk-6941d5f6b0929517a1bfc410b2a97ff0574716a4.zip
pk-6941d5f6b0929517a1bfc410b2a97ff0574716a4.tar.gz
pk-6941d5f6b0929517a1bfc410b2a97ff0574716a4.tar.bz2
respect CFLAGS and LDFLAGS env vars
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index a072d63..2e4ab53 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -83,7 +83,7 @@ VPATH := $(addprefix $(src_dir)/, $(sprojs_enabled))
# - CXXFLAGS : flags for C++ compiler (eg. -Wall,-g,-O3)
CC := @CC@
-CFLAGS := @CFLAGS@
+CFLAGS := @CFLAGS@ $(CFLAGS)
COMPILE := $(CC) -MMD -MP $(CFLAGS) \
$(sprojs_include)
# Linker
@@ -91,7 +91,7 @@ COMPILE := $(CC) -MMD -MP $(CFLAGS) \
# - LIBS : Library flags (eg. -l)
LD := $(CC)
-LDFLAGS := @LDFLAGS@ -nostartfiles -nostdlib
+LDFLAGS := @LDFLAGS@ -nostartfiles -nostdlib $(LDFLAGS)
LIBS := @LIBS@
LINK := $(LD) $(LDFLAGS) -T $(src_dir)/pk/pk.ld