configure: Automatically add more flags required on symbian
authorMartin Storsjö <martin@martin.st>
Fri, 15 Jul 2011 07:53:12 +0000 (10:53 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 15 Jul 2011 13:09:03 +0000 (16:09 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 596b603..28e3e25 100755 (executable)
--- a/configure
+++ b/configure
@@ -2499,7 +2499,14 @@ case $target_os in
     symbian)
         SLIBSUF=".dll"
         enable dos_paths
-        add_cflags --include=$sysinclude/gcce/gcce.h
+        add_cflags --include=$sysinclude/gcce/gcce.h -fvisibility=default
+        add_cppflags -D__GCCE__ -D__SYMBIAN32__ -DSYMBIAN_OE_POSIX_SIGNALS
+        add_ldflags -Wl,--target1-abs,--no-undefined \
+                    -Wl,-Ttext,0x80000,-Tdata,0x1000000 -shared \
+                    -Wl,--entry=_E32Startup -Wl,-u,_E32Startup
+        add_extralibs -l:eexe.lib -l:usrt2_2.lib -l:dfpaeabi.dso \
+                      -l:drtaeabi.dso -l:scppnwdl.dso -lsupc++ -lgcc \
+                      -l:libc.dso -l:libm.dso -l:euser.dso -l:libcrt0.lib
         ;;
     none)
         ;;