Created
April 18, 2013 04:08
-
-
Save chsh/5410044 to your computer and use it in GitHub Desktop.
Patch to compile stone (simple repeater http://www.gcd.org/sengoku/stone/ ) on linux.
Only add -D_GNU_SOURCE to linux build parameter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** stone-2.3d-2.3.2.7.org/Makefile 2008-02-05 08:00:00.000000000 +0900 | |
--- stone-2.3d-2.3.2.7/Makefile 2013-04-18 13:01:12.253674581 +0900 | |
*************** | |
*** 97,103 **** | |
$(MAKE) FLAGS="-DNT_SERVICE $(FLAGS)" LIBS="$(LIBS) $(SVC_LIBS) -ladvapi32 -luser32 -lshell32 -lkernel32" $(TARGET) | |
linux: | |
! $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL $(FLAGS)" LIBS="-lpthread $(LIBS)" stone | |
linux-pop: | |
$(MAKE) TARGET=linux pop_stone | |
--- 97,103 ---- | |
$(MAKE) FLAGS="-DNT_SERVICE $(FLAGS)" LIBS="$(LIBS) $(SVC_LIBS) -ladvapi32 -luser32 -lshell32 -lkernel32" $(TARGET) | |
linux: | |
! $(MAKE) FLAGS="-O -Wall -DCPP='\"/usr/bin/cpp -traditional\"' -DPTHREAD -DUNIX_DAEMON -DPRCTL -DSO_ORIGINAL_DST=80 -DUSE_EPOLL -D_GNU_SOURCE $(FLAGS)" LIBS="-lpthread $(LIBS)" stone | |
linux-pop: | |
$(MAKE) TARGET=linux pop_stone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment