changeset 472:9b3ec2748616 default tip

fix lua build
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 05 Feb 2012 17:23:28 -0500
parents 96da3a025725
children
files components/lua/patches/4.more.Makefile.patch
diffstat 1 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/patches/4.more.Makefile.patch	Sun Feb 05 17:23:28 2012 -0500
@@ -0,0 +1,34 @@
+--- a/src/tmp	2012-02-05 17:14:08.732178055 -0500
++++ a/src/Makefile	2012-02-05 17:14:48.675069426 -0500
+@@ -4,6 +4,10 @@
+ 
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
+ 
++MYCFLAGS?=
++MYLDFLAGS?= -zdefs -ztext
++MYLIBS?=
++
+ CC=$(CC)
+ CFLAGS= -xO3 -Xc -Kpic $(MYCFLAGS)
+ FLAG_SPARC:sh=	if [ ${MACH64} = "sparcv9" ]; then echo -xcode=pic13; fi
+@@ -13,10 +17,6 @@
+ RM= rm -f
+ LIBS= -lm -lc $(MYLIBS)
+ 
+-MYCFLAGS=
+-MYLDFLAGS= -zdefs -ztext
+-MYLIBS=
+-
+ # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
+ 
+ PLATS= solaris
+@@ -46,6 +46,9 @@
+ 
+ a:	$(ALL_A)
+ 
++%.o: %.c
++	$(CC) -o $@ -c $(CFLAGS) $(MYCFLAGS) $<
++
+ $(LUA_SO): $(CORE_O) $(LIB_O)
+ 	$(CC) -o $(LUA_SO) -G -h $(LUA_SO) $(CFLAGS) $(MYLDFLAGS) $(CORE_O) \
+ 	$(LIB_O) $(LIBS)