mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
23 lines
670 B
Diff
23 lines
670 B
Diff
--- mk/Variables.mk.orig 2016-07-26 15:26:23.000000000 +0200
|
|||
|
|
+++ mk/Variables.mk 2016-07-26 15:26:51.000000000 +0200
|
||
|
|
@@ -36,18 +36,12 @@
|
||
|
|
INSTALL_DIR := $(INSTALL) -d
|
||
|
|
|
||
|
|
# cflags
|
||
|
|
-CFLAGS ?= -g -O2
|
||
|
|
+CFLAGS ?= $(EXTRA_CFLAGS)
|
||
|
|
CXXFLAGS ?= $(CFLAGS)
|
||
|
|
CFLAGS += -Wall -Wmissing-prototypes -Wstrict-prototypes \
|
||
|
|
-Wpointer-arith -Wunused
|
||
|
|
CXXFLAGS += -Wall -Wpointer-arith -Wunused
|
||
|
|
|
||
|
|
-# add /usr/local to the search path if something is in there ...
|
||
|
|
-ifneq ($(wildcard /usr/local/include/*.h),)
|
||
|
|
- CFLAGS += -I/usr/local/include
|
||
|
|
- LDFLAGS += -L/usr/local/$(LIB)
|
||
|
|
-endif
|
||
|
|
-
|
||
|
|
# fixup include path for $(srcdir) != "."
|
||
|
|
ifneq ($(srcdir),.)
|
||
|
|
CFLAGS += -I. -I$(srcdir)
|