Skip to content

Commit

Permalink
Move math, dl, pthread, rt dependencies to bake.util
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Jan 20, 2019
1 parent 27f2af9 commit 1d4ec50
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
7 changes: 0 additions & 7 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,3 @@ workspace "bake"
configuration "release"
defines { "NDEBUG" }
optimize "On"

filter { "system:macosx", "action:gmake"}
toolset "clang"
links { "dl", "pthread" }

filter { "system:linux", "action:gmake"}
links { "rt", "dl", "pthread", "m" }
4 changes: 2 additions & 2 deletions util/build-darwin/bake_util.make
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ifeq ($(config),debug)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -fPIC -g
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -fPIC -g
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LIBS += -ldl -lpthread
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/libbake_util.dylib
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
Expand Down Expand Up @@ -65,7 +65,7 @@ ifeq ($(config),release)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2 -fPIC
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2 -fPIC
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LIBS += -ldl -lpthread
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -dynamiclib -Wl,-install_name,@rpath/libbake_util.dylib
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
Expand Down
4 changes: 2 additions & 2 deletions util/build-linux/bake_util.make
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ifeq ($(config),debug)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -fPIC -g -std=c99 -D_XOPEN_SOURCE=600
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -fPIC -g -std=c99 -D_XOPEN_SOURCE=600
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LIBS += -lrt -ldl -lpthread -lm
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -shared -Wl,-soname=libbake_util.so
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
Expand All @@ -49,7 +49,7 @@ ifeq ($(config),release)
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2 -fPIC -std=c99 -D_XOPEN_SOURCE=600
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2 -fPIC -std=c99 -D_XOPEN_SOURCE=600
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
LIBS +=
LIBS += -lrt -ldl -lpthread -lm
LDDEPS +=
ALL_LDFLAGS += $(LDFLAGS) -shared -Wl,-soname=libbake_util.so -s
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
Expand Down
7 changes: 7 additions & 0 deletions util/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ workspace "bake_util"
configuration "release"
defines { "UT_IMPL", "NDEBUG" }
optimize "On"

filter { "system:macosx", "action:gmake"}
toolset "clang"
links { "dl", "pthread" }

filter { "system:linux", "action:gmake"}
links { "rt", "dl", "pthread", "m" }

0 comments on commit 1d4ec50

Please sign in to comment.