1
0

patch-config_Makefile_linux 674 B

1234567891011121314151617181920212223242526
  1. --- glew-1.10.0.orig/config/Makefile.linux 2013-07-22 16:11:22.000000000 +0200
  2. +++ glew-1.10.0/config/Makefile.linux 2013-07-30 13:17:09.000000000 +0200
  3. @@ -1,21 +1,7 @@
  4. NAME = $(GLEW_NAME)
  5. -CC = cc
  6. -LD = cc
  7. +CC ?= cc
  8. +LD = $(CC)
  9. M_ARCH ?= $(shell uname -m)
  10. -ARCH64 = false
  11. -ifeq (x86_64,${M_ARCH})
  12. - ARCH64 = true
  13. -endif
  14. -ifeq (ppc64,${M_ARCH})
  15. - ARCH64 = true
  16. -endif
  17. -ifeq (${ARCH64},true)
  18. - LDFLAGS.EXTRA = -L/usr/X11R6/lib64 -L/usr/lib64
  19. - LIBDIR = $(GLEW_DEST)/lib64
  20. -else
  21. - LDFLAGS.EXTRA = -L/usr/X11R6/lib -L/usr/lib
  22. - LIBDIR = $(GLEW_DEST)/lib
  23. -endif
  24. LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11
  25. LDFLAGS.STATIC = -Wl,-Bstatic
  26. LDFLAGS.DYNAMIC = -Wl,-Bdynamic