[libss7-commits] rmudgett: branch 1.0 r318 - /branches/1.0/Makefile
SVN commits to the libss7 project
libss7-commits at lists.digium.com
Wed Sep 26 10:54:59 CDT 2012
Author: rmudgett
Date: Wed Sep 26 10:54:55 2012
New Revision: 318
URL: http://svnview.digium.com/svn/libss7?view=rev&rev=318
Log:
Allow passing compiler flags (CFLAGS, LDFLAGS)
Modified:
branches/1.0/Makefile
Modified: branches/1.0/Makefile
URL: http://svnview.digium.com/svn/libss7/branches/1.0/Makefile?view=diff&rev=318&r1=317&r2=318
==============================================================================
--- branches/1.0/Makefile (original)
+++ branches/1.0/Makefile Wed Sep 26 10:54:55 2012
@@ -43,18 +43,20 @@
version.o
DYNAMIC_OBJS= \
$(STATIC_OBJS)
-CFLAGS=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC $(LIBSS7_OPT) $(COVERAGE_CFLAGS)
+CFLAGS ?= -g
+CFLAGS += -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS += -fPIC $(LIBSS7_OPT) $(COVERAGE_CFLAGS)
INSTALL_PREFIX=$(DESTDIR)
INSTALL_BASE=/usr
libdir?=$(INSTALL_BASE)/lib
ifneq ($(findstring Darwin,$(OSARCH)),)
- SOFLAGS=-dynamic -bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
+ SOFLAGS=$(LDFLAGS) -dynamic -bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
SOFLAGS+=/usr/lib/bundle1.o
endif
LDCONFIG=/usr/bin/true
else
- SOFLAGS=-shared -Wl,-h$(DYNAMIC_LIBRARY) $(COVERAGE_LDFLAGS)
+ SOFLAGS=$(LDFLAGS) -shared -Wl,-h$(DYNAMIC_LIBRARY) $(COVERAGE_LDFLAGS)
LDCONFIG = /sbin/ldconfig
endif
ifneq (,$(findstring X$(OSARCH)X, XLinuxX XGNU/kFreeBSDX XGNUX))
More information about the libss7-commits
mailing list