Skip to content

Commit

Permalink
Possibly working on both Mac and Ubuntu?
Browse files Browse the repository at this point in the history
  • Loading branch information
quinthar committed Oct 1, 2018
1 parent 0b5cba6 commit fe1c9ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion Makefile
Expand Up @@ -45,7 +45,6 @@ testplugin:
# Set up our precompiled header. This makes building *way* faster (roughly twice as fast).
# Including it here causes it to be generated.
# Depends on one of our mbedtls files, to make sure the submodule gets pulled and built.
UNAME_S := $(shell uname -s)
PRECOMPILE_D =libstuff/libstuff.d
PRECOMPILE_INCLUDE =-include libstuff/libstuff.h
libstuff/libstuff.h.gch libstuff/libstuff.d: libstuff/libstuff.h mbedtls/library/libmbedcrypto.a
Expand Down
8 changes: 6 additions & 2 deletions test/clustertest/testplugin/Makefile
Expand Up @@ -51,11 +51,15 @@ ifneq ($(MAKECMDGOALS),clean)
-include $(DEP)
endif

LIBRARIES =-lpcrecpp -lbedrock -lstuff -ldl -lpthread -lmbedtls -lmbedx509 -lmbedcrypto -lz
# OSX needs to re-link the libraries for some reason
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LIBRARIES = -L../../../ -L../../../mbedtls/library -rdynamic -lpcrecpp -lbedrock -lstuff -ldl -lpthread -lmbedtls -lmbedx509 -lmbedcrypto -lz
endif

# The main library depends on all the .o files.
testplugin.so: $(OBJ)
$(GXX) $(CXXFLAGS) -shared -o $@ $(OBJ) -lpcrecpp -L../../../ -L../../../mbedtls/library -rdynamic $(LIBRARIES)
$(GXX) $(CXXFLAGS) -shared -o $@ $(OBJ) $(LIBRARIES)

# Make dependency files from cpp files, putting them in $INTERMEDIATEDIR.
# This is the same as making the object files, both dependencies and object files are built together. The only
Expand Down

0 comments on commit fe1c9ff

Please sign in to comment.