pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
ppc-morphos-gcc-9: Fix compilation on macOS
Module Name: pkgsrc-wip
Committed By: Jonathan Schleifer <js%nil.im@localhost>
Pushed By: js
Date: Sat Jan 25 17:54:48 2020 +0100
Changeset: a2abae9234560cf2127b4badfebf46e4b129b8e3
Modified Files:
ppc-morphos-gcc-9/Makefile
ppc-morphos-gcc-9/PLIST
ppc-morphos-gcc-9/distinfo
Added Files:
ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_morphos.c
Log Message:
ppc-morphos-gcc-9: Fix compilation on macOS
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a2abae9234560cf2127b4badfebf46e4b129b8e3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ppc-morphos-gcc-9/Makefile | 3 +++
ppc-morphos-gcc-9/PLIST | 1 -
ppc-morphos-gcc-9/distinfo | 1 +
.../patches/patch-gcc_config_rs6000_morphos.c | 20 ++++++++++++++++++++
4 files changed, 24 insertions(+), 1 deletion(-)
diffs:
diff --git a/ppc-morphos-gcc-9/Makefile b/ppc-morphos-gcc-9/Makefile
index 1bb114f99f..8b9de69b92 100644
--- a/ppc-morphos-gcc-9/Makefile
+++ b/ppc-morphos-gcc-9/Makefile
@@ -54,6 +54,9 @@ pre-patch:
pre-configure:
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
+post-install:
+ ${RUN} rm -f ${DESTDIR}${PREFIX}/gg/share/info/dir
+
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../math/mpcomplex/buildlink3.mk"
diff --git a/ppc-morphos-gcc-9/PLIST b/ppc-morphos-gcc-9/PLIST
index 7612dfbcd6..94cd01513f 100644
--- a/ppc-morphos-gcc-9/PLIST
+++ b/ppc-morphos-gcc-9/PLIST
@@ -1422,7 +1422,6 @@ gg/share/gcc-${PKGVERSION}/python/libstdcxx/v6/printers.py
gg/share/gcc-${PKGVERSION}/python/libstdcxx/v6/xmethods.py
gg/share/info/cpp.info
gg/share/info/cppinternals.info
-gg/share/info/dir
gg/share/info/gcc.info
gg/share/info/gccinstall.info
gg/share/info/gccint.info
diff --git a/ppc-morphos-gcc-9/distinfo b/ppc-morphos-gcc-9/distinfo
index 847d55b08d..12a3b6af90 100644
--- a/ppc-morphos-gcc-9/distinfo
+++ b/ppc-morphos-gcc-9/distinfo
@@ -4,4 +4,5 @@ SHA1 (sdk-source-20191111.tar.xz) = 73188877bc83ddf7382f2dcef70c5bc9c631aec6
RMD160 (sdk-source-20191111.tar.xz) = b8c01cc4e6caa897672f44426bc3e575abaeddc8
SHA512 (sdk-source-20191111.tar.xz) = d201e1a6425d847ec5567939225db402524436398d7961180d2295e69ef8003edaf311df49e89ef0fbefe3a0f6f74935a6d132e58b496e3be1f6136a91aa6634
Size (sdk-source-20191111.tar.xz) = 503342768 bytes
+SHA1 (patch-gcc_config_rs6000_morphos.c) = 68f558ecd56c7ccf1a019471deac004b0e48b0ac
SHA1 (patch-libstdc++-v3_libsupc++_unwind-cxx.h) = 0234e780171554bf60858b884ab1181cad36f8b2
diff --git a/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_morphos.c b/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_morphos.c
new file mode 100644
index 0000000000..bd0173e02a
--- /dev/null
+++ b/ppc-morphos-gcc-9/patches/patch-gcc_config_rs6000_morphos.c
@@ -0,0 +1,20 @@
+$NetBSD$
+
+--- gcc/config/rs6000/morphos.c.orig 2020-01-25 16:25:31.000000000 +0000
++++ gcc/config/rs6000/morphos.c
+@@ -80,6 +80,7 @@
+ /* mclib */
+ //const char *morphos_mclib_name = (char *)0;
+
++#ifdef __MORPHOS__
+ #define STACKSIZE 2097152
+ #define str(s) #s
+ #define sstr(s) str(s)
+@@ -94,6 +95,7 @@ asm("\n"
+ " .section \".text\"\n"
+ " .align 2\n"
+ );
++#endif
+
+ /* mbaserel32 */
+ rtx morphos_legitimize_baserel_address(rtx addr)
Home |
Main Index |
Thread Index |
Old Index