Browse Source

[master] Removed linking with gtest in libdhcpsrvtest.

This change was okayed on jabber by Thomas. The issue
occurred when static linking was enabled on OSX.

Linking a static lib from statically linked lib causes
various issues and isn't generally considered a good
idea.
Marcin Siodelski 9 years ago
parent
commit
0795ac9d0e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/lib/dhcpsrv/testutils/Makefile.am

+ 1 - 5
src/lib/dhcpsrv/testutils/Makefile.am

@@ -5,10 +5,6 @@ AM_CPPFLAGS += $(BOOST_INCLUDES)
 
 AM_CXXFLAGS = $(KEA_CXXFLAGS)
 
-if USE_STATIC_LINK
-AM_LDFLAGS = -static
-endif
-
 CLEANFILES = *.gcno *.gcda
 
 if HAVE_GTEST
@@ -26,7 +22,7 @@ libdhcpsrvtest_la_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 if HAVE_MYSQL
 libdhcpsrvtest_la_CPPFLAGS += $(MYSQL_CPPFLAGS)
 endif
-libdhcpsrvtest_la_LDFLAGS  = $(AM_LDFLAGS) $(GTEST_LDFLAGS)
+libdhcpsrvtest_la_LDFLAGS  = $(AM_LDFLAGS)
 if HAVE_MYSQL
 libdhcpsrvtest_la_LDFLAGS  += $(MYSQL_LIBS)
 endif