forked from pool/tolua
* tolua-5.2.0-optflags.patch * tolua-5.2.0-shared.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/tolua?expand=0&rev=5
38 lines
1.0 KiB
Diff
38 lines
1.0 KiB
Diff
Index: tolua-5.2.4/config
|
|
===================================================================
|
|
--- tolua-5.2.4.orig/config
|
|
+++ tolua-5.2.4/config
|
|
@@ -5,7 +5,7 @@
|
|
# you need an ANSI C compiler. gcc is a popular one.
|
|
CC= gcc
|
|
CCPP = g++
|
|
-WARN= -ansi -Wall -g
|
|
+WARN= -ansi $(OPTFLAGS)
|
|
|
|
# on SGI's, cc is ANSI.
|
|
#CC= cc
|
|
Index: tolua-5.2.4/src/bin/Makefile
|
|
===================================================================
|
|
--- tolua-5.2.4.orig/src/bin/Makefile
|
|
+++ tolua-5.2.4/src/bin/Makefile
|
|
@@ -17,16 +17,16 @@ T_D = $(TOLUA)/bin/tolua_lua
|
|
all: $(T)
|
|
|
|
$(T): $(OBJS)
|
|
- $(CC) -o $@ $(OBJS) $(LIB) -ltolua -llua -lm
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB) -ltolua -llua -lm
|
|
|
|
toluabind.c: $(T_D)
|
|
$(T_D) -o toluabind.c tolua.pkg
|
|
|
|
$(T_D): $(OBJS_D)
|
|
- $(CC) -o $@ $(OBJS_D) $(LIB) -ltolua -llua -lm
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS_D) $(LIB) -ltolua -llua -lm
|
|
|
|
tolua_lua.o: tolua.c
|
|
- $(CC) -c -DLUA_SOURCE $(INC) -o $@ $<
|
|
+ $(CC) $(CFLAGS) -c -DLUA_SOURCE $(INC) -o $@ $<
|
|
|
|
clean:
|
|
rm -f tolua_lua.o $(OBJS) -$(OBJS_D) $(T) $(T_D)
|