configure: Automatically add more flags required on symbian

Message ID 1310733746-92760-1-git-send-email-martin@martin.st
State Committed
Commit e3bc07f4af25287fa4ade1e9c5501de65c8a698e
Headers show

Commit Message

Martin Storsjö July 15, 2011, 12:42 p.m.
---
 configure |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

Comments

Mans Rullgard July 15, 2011, 12:58 p.m. | #1
Martin Storsjö <martin@martin.st> writes:

> ---
>  configure |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 596b603..28e3e25 100755
> --- 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)
>          ;;
> -- 

OK

Patch

diff --git a/configure b/configure
index 596b603..28e3e25 100755
--- 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)
         ;;