From bb7c2ad7e618bc2f17e873dcc140746ca473f9d5 Mon Sep 17 00:00:00 2001 From: Alexandre Erwin Ittner Date: Mon, 19 May 2008 00:31:13 +0000 Subject: [PATCH] Fixing a bad linking to Lua core libs in the makefile git-svn-id: file:///var/svn/lua-iconv/trunk@53 9538949d-8f27-0410-946f-ce01ef448559 --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8d151da..c1ca2ca 100644 --- a/Makefile +++ b/Makefile @@ -26,20 +26,22 @@ #CC = gcc #RM = rm +# Gives a nice speedup, but also spoils debugging on x86. Comment out this +# line when debugging. +OMIT_FRAME_POINTER = -fomit-frame-pointer + # Name of .pc file. "lua5.1" on Debian/Ubuntu LUAPKG = lua5.1 CFLAGS = `pkg-config $(LUAPKG) --cflags` -O3 -Wall -LFLAGS = -shared +LFLAGS = -shared $(OMIT_FRAME_POINTER) INSTALL_PATH = `pkg-config $(LUAPKG) --variable=INSTALL_CMOD` -LIBS = `pkg-config $(LUAPKG) --libs` ## If your system doesn't have pkg-config, comment out the previous lines and ## uncomment and change the following ones according to your building ## enviroment. #CFLAGS = -I/usr/include/lua5.1/ -O3 -Wall -#LFLAGS = -shared -#LIBS = -llua5.1 +#LFLAGS = -shared $(OMIT_FRAME_POINTER) #INSTALL_PATH = /usr/lib/lua/5.1