Use $(LIBS) instead of -lpthread when linking tests

This will allow linking for win32 without pthreads more easily
This commit is contained in:
Mike Hommey 2012-04-16 16:30:21 +02:00 committed by Jason Evans
parent f5e0f526ec
commit 6f2ed70f5a

View File

@ -133,9 +133,9 @@ build_doc: $(DOCS)
@objroot@lib/libjemalloc@install_suffix@.$(SO)
@mkdir -p $(@D)
ifneq (@RPATH@, )
$(CC) -o $@ $< @RPATH@@objroot@lib -L@objroot@lib -ljemalloc@install_suffix@ -lpthread
$(CC) -o $@ $< @RPATH@@objroot@lib -L@objroot@lib -ljemalloc@install_suffix@ $(LIBS)
else
$(CC) -o $@ $< -L@objroot@lib -ljemalloc@install_suffix@ -lpthread
$(CC) -o $@ $< -L@objroot@lib -ljemalloc@install_suffix@ $(LIBS)
endif
build_lib_shared: $(DSOS)