G2A Many GEOs
SHARE
TWEET

Untitled

a guest Oct 17th, 2014 200 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Author: hasufell <hasufell@gentoo.org>
  2. Date:   Wed Jul 10 01:25:27 2013 +0200
  3.  
  4.     respect CFLAGS/LDFLAGS
  5.  
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -213,7 +213,7 @@
  9.    endif
  10.    endif
  11.  
  12. -  BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -pipe
  13. +  BASE_CFLAGS = -Wall -Wimplicit -Wstrict-prototypes
  14.  
  15.    ifeq ($(USE_OPENAL),1)
  16.      BASE_CFLAGS += -DUSE_OPENAL=1
  17. @@ -239,19 +239,15 @@
  18.      BASE_CFLAGS += -I/usr/X11R6/include
  19.    endif
  20.  
  21. -  OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer
  22. +  OPTIMIZE =
  23.  
  24.    ifeq ($(ARCH),x86_64)
  25. -    OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -funroll-loops \
  26. -      -falign-loops=2 -falign-jumps=2 -falign-functions=2 \
  27. -      -fstrength-reduce
  28. +    OPTIMIZE =
  29.      # experimental x86_64 jit compiler! you need GNU as
  30.      HAVE_VM_COMPILED = true
  31.    else
  32.    ifeq ($(ARCH),i386)
  33. -    OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math \
  34. -      -funroll-loops -falign-loops=2 -falign-jumps=2 \
  35. -      -falign-functions=2 -fstrength-reduce
  36. +    OPTIMIZE =
  37.      HAVE_VM_COMPILED=true
  38.    else
  39.    ifeq ($(ARCH),ppc)
  40. @@ -265,7 +261,7 @@
  41.      BASE_CFLAGS += -DNO_VM_COMPILED
  42.    endif
  43.  
  44. -  DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
  45. +  DEBUG_CFLAGS = $(BASE_CFLAGS) $(OPTIMIZE)
  46.  
  47.    RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
  48.  
  49. @@ -274,7 +270,7 @@
  50.    SHLIBLDFLAGS=-shared $(LDFLAGS)
  51.  
  52.    THREAD_LDFLAGS=-lpthread
  53. -  LDFLAGS=-ldl -lm
  54. +  LDFLAGS+=-ldl -lm
  55.  
  56.    ifeq ($(USE_SDL),1)
  57.      CLIENT_LDFLAGS=$(shell sdl-config --libs)
  58. @@ -1158,13 +1154,13 @@
  59.  
  60.  $(B)/Quake3-UrT.$(ARCH)$(BINEXT): $(Q3OBJ) $(Q3POBJ) $(LIBSDLMAIN)
  61.         $(echo_cmd) "LD $@"
  62. -       $(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ) $(CLIENT_LDFLAGS) \
  63. -               $(LDFLAGS) $(LIBSDLMAIN)
  64. +       $(Q)$(CC) $(CFLAGS) -o $@ $(Q3OBJ) $(Q3POBJ) \
  65. +               $(LDFLAGS) $(CLIENT_LDFLAGS) $(LIBSDLMAIN)
  66.  
  67.  $(B)/Quake3-UrT-smp.$(ARCH)$(BINEXT): $(Q3OBJ) $(Q3POBJ_SMP) $(LIBSDLMAIN)
  68.         $(echo_cmd) "LD $@"
  69. -       $(Q)$(CC) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) $(CLIENT_LDFLAGS) \
  70. -               $(THREAD_LDFLAGS) $(LDFLAGS) $(LIBSDLMAIN)
  71. +       $(Q)$(CC) $(CFLAGS) -o $@ $(Q3OBJ) $(Q3POBJ_SMP) \
  72. +               $(LDFLAGS) $(THREAD_LDFLAGS) $(CLIENT_LDFLAGS) $(LIBSDLMAIN)
  73.  
  74.  ifneq ($(strip $(LIBSDLMAIN)),)
  75.  ifneq ($(strip $(LIBSDLMAINSRC)),)
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top