Commit 15ae9091 authored by jselbie's avatar jselbie

Merge branch 'master' of https://github.com/jselbie/stunserver

parents cfadf9c3 e16f5629
...@@ -15,6 +15,6 @@ clean: ...@@ -15,6 +15,6 @@ clean:
rm -f $(PROJECT_OBJS) $(PROJECT_TARGET) rm -f $(PROJECT_OBJS) $(PROJECT_TARGET)
$(PROJECT_TARGET): $(PROJECT_OBJS) $(PROJECT_TARGET): $(PROJECT_OBJS)
$(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(ASLR_FLAGS)
...@@ -17,6 +17,8 @@ CRYPTO_LIBS := -lcrypto ...@@ -17,6 +17,8 @@ CRYPTO_LIBS := -lcrypto
#SOLARIS HACK #SOLARIS HACK
UNAME := $(shell uname -s) UNAME := $(shell uname -s)
UNAMEOS := $(shell uname -o)
ifeq ($(UNAME),SunOS) ifeq ($(UNAME),SunOS)
SOCKET_LIBS := -lsocket -lnsl SOCKET_LIBS := -lsocket -lnsl
endif endif
...@@ -26,6 +28,11 @@ ifeq ($(UNAME),Darwin) ...@@ -26,6 +28,11 @@ ifeq ($(UNAME),Darwin)
CRYPTO_LIBS := CRYPTO_LIBS :=
endif endif
#Cygwin hack for ASLR
ifeq ($(UNAMEOS), Cygwin)
ASLR_FLAGS := -Xlinker --dynamicbase
endif
.PHONY: all clean debug .PHONY: all clean debug
%.hpp.gch: %.hpp %.hpp.gch: %.hpp
......
...@@ -14,6 +14,6 @@ clean: ...@@ -14,6 +14,6 @@ clean:
rm -f $(PROJECT_OBJS) $(PROJECT_TARGET) rm -f $(PROJECT_OBJS) $(PROJECT_TARGET)
$(PROJECT_TARGET): $(PROJECT_OBJS) $(PROJECT_TARGET): $(PROJECT_OBJS)
$(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(ASLR_FLAGS)
...@@ -14,7 +14,7 @@ clean: ...@@ -14,7 +14,7 @@ clean:
rm -f $(PROJECT_OBJS) $(PROJECT_TARGET) rm -f $(PROJECT_OBJS) $(PROJECT_TARGET)
$(PROJECT_TARGET): $(PROJECT_OBJS) $(PROJECT_TARGET): $(PROJECT_OBJS)
$(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(LINK.cpp) -o $@ $^ $(LIB_PATH) $(LIBS) $(SOCKET_LIBS) $(CRYPTO_LIBS) $(ASLR_FLAGS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment