On Sat, Oct 19, 2013 at 10:11 PM, Raul Fajardo <[email protected]> wrote:
> Hi Stefan,
>
> it worked. The toolchain can now be compiled under OSX, with both newlib
> and uclib.
>
>
>
Unfortunately it seems like it breaks the build on other platforms...
Would something like below still work on OSX?
And what happens if you try to build without enabled_shared?
Stefan
diff --git a/bfd/configure b/bfd/configure
index 34d1992..f75de2c 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15079,7 +15079,7 @@ SHARED_LDFLAGS=
if test "$enable_shared" = "yes"; then
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' <
../libiberty/Makefile | sed -n '$p'`
if test -n "$x"; then
- SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
fi
# More hacks to build DLLs on Windows.
@@ -15088,6 +15088,11 @@ if test "$enable_shared" = "yes"; then
SHARED_LDFLAGS="-no-undefined"
SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl
-lintl -lcygwin -lkernel32"
;;
+
+ darwin*)
+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
+ ;;
+
esac
if test -n "$SHARED_LIBADD"; then
diff --git a/bfd/configure.in b/bfd/configure.in
index e30dc45..19f2e43 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -568,7 +568,7 @@ changequote(,)dnl
x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' <
../libiberty/Makefile | sed -n '$p'`
changequote([,])dnl
if test -n "$x"; then
- SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
fi
# More hacks to build DLLs on Windows.
@@ -577,6 +577,10 @@ changequote([,])dnl
SHARED_LDFLAGS="-no-undefined"
SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl
-lintl -lcygwin -lkernel32"
;;
+
+ darwin*)
+ SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
+ ;;
esac
if test -n "$SHARED_LIBADD"; then
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc