Improve build: LDFLAGS.
Linker must be passed LDFLAGS for some distributions, as CXXFLAGS should not normally contain any linker flags (may fail if passed to compile-only invocations). Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
@@ -79,7 +79,7 @@ TEST_OBJECTS=$(subst .cc,.gmo,$(TEST_SOURCE))
|
||||
|
||||
unit-tests/unit_tests: $(TEST_OBJECTS) lib/libgmock.a lib/libpdata.a
|
||||
@echo " [LD] $<"
|
||||
$(V)g++ $(CXXFLAGS) -o $@ $(TEST_OBJECTS) $(LIBS) $(GMOCK_LIBS) $(LIBEXPAT)
|
||||
$(V)g++ $(CXXFLAGS) $(LDFLAGS) -o $@ $(TEST_OBJECTS) $(LIBS) $(GMOCK_LIBS) $(LIBEXPAT)
|
||||
|
||||
.PHONEY: unit-test
|
||||
|
||||
|
Reference in New Issue
Block a user