configure: Automatically add more flags required on symbian

Message ID 1310729873-86596-1-git-send-email-martin@martin.st
State Superseded
Headers show

Commit Message

Martin Storsjö July 15, 2011, 11:37 a.m.
---
 configure |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Comments

Mans Rullgard July 15, 2011, 11:48 a.m. | #1
Martin Storsjö <martin@martin.st> writes:

> ---
>  configure |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 9ce77d1..cdf8d00 100755
> --- a/configure
> +++ b/configure
> @@ -2502,6 +2502,14 @@ case $target_os in
>          speed_cflags='-O2'
>          enable dos_paths
>          add_cflags --include=$sysinclude/gcce/gcce.h
> +        add_cflags -fvisibility=default -nostdinc
> +        add_cppflags -D__GCCE__ -D__SYMBIAN32__ -DSYMBIAN_OE_POSIX_SIGNALS
> +        add_ldflags -Wl,--target1-abs,--no-undefined,-nostdlib
> +        add_ldflags -Wl,-Ttext,0x80000,-Tdata,0x1000000 -Wl,-shared
> +        add_ldflags -Wl,--entry=_E32Startup -Wl,-u,_E32Startup
> +        add_extralibs -l:eexe.lib -l:usrt2_2.lib -l:dfpaeabi.dso -l:drtaeabi.dso
> +        add_extralibs -l:scppnwdl.dso -lsupc++ -lgcc -l:libc.dso -l:libm.dso
> +        add_extralibs -l:euser.dso -l:libcrt0.lib
>          ;;
>      none)
>          ;;
> -- 

See additional comments in the original thread.

Patch

diff --git a/configure b/configure
index 9ce77d1..cdf8d00 100755
--- a/configure
+++ b/configure
@@ -2502,6 +2502,14 @@  case $target_os in
         speed_cflags='-O2'
         enable dos_paths
         add_cflags --include=$sysinclude/gcce/gcce.h
+        add_cflags -fvisibility=default -nostdinc
+        add_cppflags -D__GCCE__ -D__SYMBIAN32__ -DSYMBIAN_OE_POSIX_SIGNALS
+        add_ldflags -Wl,--target1-abs,--no-undefined,-nostdlib
+        add_ldflags -Wl,-Ttext,0x80000,-Tdata,0x1000000 -Wl,-shared
+        add_ldflags -Wl,--entry=_E32Startup -Wl,-u,_E32Startup
+        add_extralibs -l:eexe.lib -l:usrt2_2.lib -l:dfpaeabi.dso -l:drtaeabi.dso
+        add_extralibs -l:scppnwdl.dso -lsupc++ -lgcc -l:libc.dso -l:libm.dso
+        add_extralibs -l:euser.dso -l:libcrt0.lib
         ;;
     none)
         ;;