Created
February 24, 2011 10:11
-
-
Save matthiasr/842012 to your computer and use it in GitHub Desktop.
pkgsrc lang/pcc-current DragonFly BSD x86_64 support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lang/pcc-current/distinfo b/lang/pcc-current/distinfo | |
index d2902a2..1b853ad 100644 | |
--- a/lang/pcc-current/distinfo | |
+++ b/lang/pcc-current/distinfo | |
@@ -4,3 +4,4 @@ SHA1 (pcc-101129.tgz) = bc5eb81cc7ae7969b6e93fc9a71d7e5f7c08ac8c | |
RMD160 (pcc-101129.tgz) = 119aff203be93ac895432774765632f95f81548c | |
Size (pcc-101129.tgz) = 642663 bytes | |
SHA1 (patch-aa) = 3ca9662e342d240f2d896e95a65261e7e76cda79 | |
+SHA1 (patch-ab) = 2140136f459645d1141668f126475d46ea49648a | |
diff --git a/lang/pcc-current/patches/patch-ab b/lang/pcc-current/patches/patch-ab | |
new file mode 100644 | |
index 0000000..1b44919 | |
--- /dev/null | |
+++ b/lang/pcc-current/patches/patch-ab | |
@@ -0,0 +1,33 @@ | |
+--- configure.orig | |
++++ configure | |
+@@ -1944,6 +1944,7 @@ case "$target_os" in | |
+ tls=yes | |
+ case "$target_cpu" in | |
+ i?86) targmach=i386 ;; | |
++ x86_64) targmach=amd64 ;; | |
+ esac | |
+ ;; | |
+ | |
+--- configure.ac.orig | |
++++ configure.ac | |
+@@ -54,6 +54,7 @@ case "$target_os" in | |
+ tls=yes | |
+ case "$target_cpu" in | |
+ i?86) targmach=i386 ;; | |
++ x86_64) targmach=amd64 ;; | |
+ esac | |
+ ;; | |
+ | |
+--- os/dragonfly/ccconfig.h.orig | |
++++ os/dragonfly/ccconfig.h | |
+@@ -43,6 +43,10 @@ | |
+ | |
+ #if defined(mach_i386) | |
+ #define CPPMDADD { "-D__i386__", NULL, } | |
++#elif defined(mach_amd64) | |
++#define CPPMDADD \ | |
++ { "-D__x86_64__", "-D__x86_64", "-D__amd64__", "-D__amd64", \ | |
++ "-D__LP64__=1", "-D_LP64=1", NULL, } | |
+ #else | |
+ #error defines for arch missing | |
+ #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment