--- config.orig	2009-10-21 00:54:35.000000000 +0400
+++ config	2010-07-22 15:31:41.711205070 +0400
@@ -10,15 +10,15 @@
 LUA_INC= $(PREFIX)/include
 
 # OS dependent
-LIB_OPTION= -shared #for Linux
+LIB_OPTION= -shared $(MYLDFLAGS) #for Linux
 #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
 
 LIBNAME= $T.so.$V
 
 # Compilation directives
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
+WARN= -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
 INCS= -I$(LUA_INC)
-CFLAGS= $(WARN) $(INCS)
+CFLAGS= $(WARN) $(INCS) $(MYCFLAGS)
 CC= gcc
 
 # $Id: config,v 1.21 2007/10/27 22:42:32 carregal Exp $
