18 lines
609 B
Plaintext
18 lines
609 B
Plaintext
$NetBSD: patch-ab,v 1.11 2009/01/12 19:22:18 adam Exp $
|
|
|
|
--- src/Makefile.orig 2008-11-03 21:22:19.000000000 +0100
|
|
+++ src/Makefile
|
|
@@ -160,8 +160,10 @@ ifdef BUILD_DIST # distribution build
|
|
OPTIONS = -O3 -Wall
|
|
endif
|
|
|
|
-CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG)
|
|
-LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
|
|
+# pkgsrc presets those variables, so use '+=' to append to them
|
|
+# flags for debugging or optimisation may be supplied from the pkgsrc Makefile
|
|
+CFLAGS += $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG)
|
|
+LDFLAGS += $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
|
|
|
|
|
|
SRCS = main.c \
|