summaryrefslogtreecommitdiff
blob: 803d2835c37fbc146dcdfb6e234ff5853571a15f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/src/Makefile b/src/Makefile
index 10fc31a..af5e4e4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -144,8 +144,8 @@ O_linux=o
 CC_linux=gcc
 DEF_linux=
 CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
-	-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
-LDFLAGS_linux=-lrt -O -shared -fpic -o
+	-Wimplicit -fpic -fvisibility=hidden
+LDFLAGS_linux=-lrt -shared -fpic -o
 LD_linux=gcc
 
 #------
@@ -208,7 +208,7 @@ SOLIB=core.$(SO)
 #
 CC=$(CC_$(PLAT))
 DEF=$(DEF_$(PLAT))
-CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT))
+CFLAGS=$(CFLAGS_$(PLAT)) $(MYCFLAGS)
 LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT))
 LD=$(LD_$(PLAT))
 LUAINC= $(LUAINC_$(PLAT))
@@ -248,7 +248,7 @@ none:
 all: $(SOLIB)
 
 $(SOLIB): $(OBJS)
-	$(LD) $(OBJS) $(LDFLAGS)$@
+	$(LD) $(OBJS) $(LDFLAGS) $@
 
 install: all
 	$(INSTALL_DIR) $(INSTALL_TOP_LDIR)