Ticket #12098: config.diff

File config.diff, 1.5 KB (added by emmett.shear@…, 17 years ago)

patch for the config file

  • config

    old new  
    1515#------
    1616# Lua includes and libraries
    1717#
    18 LUAINC=-I/usr/local/include/lua50
    19 #LUAINC=-I/usr/local/include/lua5.1
     18LUAINC=-I%%PREFIX%%/include
    2019
    2120#------
    2221# Compat-5.1 directory
     
    2726# Top of your Lua installation
    2827# Relative paths will be inside the src tree
    2928#
    30 INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
    31 INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
    32 #INSTALL_TOP_SHARE=/usr/local/share/lua/5.1
    33 #INSTALL_TOP_LIB=/usr/local/lib/lua/5.1
     29INSTALL_TOP_SHARE=$(DESTDIR)/share/lua/5.1
     30INSTALL_TOP_LIB=$(DESTDIR)/lib/lua/5.1
    3431
    3532INSTALL_DATA=cp
    3633INSTALL_EXEC=cp
     
    3936# Compiler and linker settings
    4037# for Mac OS X
    4138#
    42 #CC=gcc
    43 #DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
    44 #CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
    45 #LDFLAGS=-bundle -undefined dynamic_lookup
    46 #LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
     39CC=gcc
     40DEF=-DLUASOCKET_DEBUG -DUNIX_HAS_SUN_LEN
     41CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fno-common
     42LDFLAGS=-bundle -undefined dynamic_lookup
     43LD=export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc
    4744
    4845#------
    4946# Compiler and linker settings
    5047# for Linux
    51 CC=gcc
    52 DEF=-DLUASOCKET_DEBUG
    53 CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
    54 LDFLAGS=-O -shared -fpic
    55 LD=gcc
     48#CC=gcc
     49#DEF=-DLUASOCKET_DEBUG
     50#CFLAGS= $(LUAINC) -I$(COMPAT) $(DEF) -pedantic -Wall -O2 -fpic
     51#LDFLAGS=-O -shared -fpic
     52#LD=gcc
    5653
    5754#------
    5855# End of makefile configuration