diff --git a/compiler/amxxpc/Makefile b/compiler/amxxpc/Makefile index e355774e..1e426aba 100755 --- a/compiler/amxxpc/Makefile +++ b/compiler/amxxpc/Makefile @@ -3,9 +3,9 @@ ### EDIT BELOW FOR OTHER PROJECTS ### -OPT_FLAGS = -O3 -funroll-loops -s -pipe +OPT_FLAGS = -g -ggdb3 #-O3 -funroll-loops -s -pipe -fno-strict-aliasing DEBUG_FLAGS = -g -ggdb3 -CPP = gcc +CPP = gcc-4.1 BINARY = amxxpc OBJECTS = amx.cpp amxxpc.cpp Binary.cpp diff --git a/compiler/amxxpc/libz.a b/compiler/amxxpc/libz.a index 56a9c261..4ffe30e0 100755 Binary files a/compiler/amxxpc/libz.a and b/compiler/amxxpc/libz.a differ diff --git a/compiler/libpc300/Makefile b/compiler/libpc300/Makefile index d036674d..3a9793b9 100755 --- a/compiler/libpc300/Makefile +++ b/compiler/libpc300/Makefile @@ -3,9 +3,9 @@ ### EDIT BELOW FOR OTHER PROJECTS ### -OPT_FLAGS = -O3 -funroll-loops -s -pipe +OPT_FLAGS = -O3 -funroll-loops -s -pipe -fno-strict-aliasing -fvisibility=hidden DEBUG_FLAGS = -g -ggdb3 -CPP = gcc +CPP = gcc-4.1 NAME = amxxpc OBJECTS = sc1.c sc2.c sc3.c sc4.c sc5.c sc6.c sc7.c scvars.c scmemfil.c \ diff --git a/compiler/libpc300/libpawnc.c b/compiler/libpc300/libpawnc.c index 92fa7c8b..ee06615d 100755 --- a/compiler/libpc300/libpawnc.c +++ b/compiler/libpc300/libpawnc.c @@ -52,7 +52,7 @@ __declspec (dllexport) void EXCOMPILER(int argc, char **argv) # else - void extern EXCOMPILER(int argc, char **argv) + void extern __attribute__((visibility("default"))) EXCOMPILER(int argc, char **argv) # endif { pc_compile(argc, argv); @@ -70,7 +70,7 @@ __declspec (dllexport) int pc_printf(const char *message,...) #else -extern int pc_printf(const char *message,...) +extern int __attribute__((visibility("default"))) pc_printf(const char *message,...) #endif #else int pc_printf(const char *message, ...) diff --git a/compiler/libpc300/sc.h b/compiler/libpc300/sc.h index 099c8cd6..ed3ce11f 100755 --- a/compiler/libpc300/sc.h +++ b/compiler/libpc300/sc.h @@ -446,7 +446,7 @@ int pc_enablewarning(int number,int enable); __declspec (dllexport) int pc_printf(const char *message,...); #else -extern int pc_printf(const char *message,...); +extern int __attribute__((visibility("default"))) pc_printf(const char *message,...); #endif #else int pc_printf(const char *message, ...) INVISIBLE;