diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-22T19·38+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-22T19·38+0100 |
commit | ea2f7df5fac0b319b82a4a33ba8b992737fa8c56 (patch) | |
tree | 6ee87f0d521ebea06c01289265c79df44d9ccb1e /Makefile.lib | |
parent | 6b5f89f2cf954cae1623a6cd3a8f7eb78e19e85b (diff) |
Introduce variables GLOBAL_CFLAGS and GLOBAL_CXXFLAGS
There are flags that must be set, so they shouldn't be overriden by the user's CFLAGS or CXXFLAGS.
Diffstat (limited to 'Makefile.lib')
-rw-r--r-- | Makefile.lib | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.lib b/Makefile.lib index 6c59c759695e..4df40c9d2cf4 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -24,10 +24,10 @@ dist_files := QUIET = @ %.o: %.cc - $(QUIET) $(CXX) -o $@ -c $< -g -fPIC $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP + $(QUIET) $(CXX) -o $@ -c $< -g -fPIC $(GLOBAL_CXXFLAGS) $(CXXFLAGS) $($@_CXXFLAGS) -MMD -MF $(basename $@).dep -MP %.o: %.c - $(QUIET) $(CC) -o $@ -c $< -g -fPIC $(CFLAGS) $($@_CFLAGS) -MMD -MF $(basename $@).dep -MP + $(QUIET) $(CC) -o $@ -c $< -g -fPIC $(GLOBAL_CFLAGS) $(CFLAGS) $($@_CFLAGS) -MMD -MF $(basename $@).dep -MP # Generate Make rules for libraries. |