lua-5.2-cflags.diff 654 B

1234567891011121314151617181920
  1. Binary files lua-5.2.4.orig/src/.Makefile.un~ and lua-5.2.4/src/.Makefile.un~ differ
  2. diff -pruN lua-5.2.4.orig/src/Makefile lua-5.2.4/src/Makefile
  3. --- lua-5.2.4.orig/src/Makefile 2015-12-06 00:26:37.000000000 +0000
  4. +++ lua-5.2.4/src/Makefile 2015-12-06 00:33:01.000000000 +0000
  5. @@ -6,9 +6,11 @@
  6. # Your platform. See PLATS for possible values.
  7. PLAT= none
  8. -CC= gcc
  9. -CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
  10. -LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
  11. +CC ?= gcc
  12. +CFLAGS ?= -O2 -Wall
  13. +CFLAGS += -fPIC -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
  14. +LDFLAGS ?=
  15. +LDFLAGS += $(SYSLDFLAGS) $(MYLDFLAGS)
  16. LIBS= -lm $(SYSLIBS) $(MYLIBS)
  17. AR= ar rcu