[60509] trunk/dports/lang
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 14 00:07:47 PST 2009
Revision: 60509
http://trac.macports.org/changeset/60509
Author: ryandesign at macports.org
Date: 2009-11-14 00:07:44 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
pure, pure-devel: ensure llvm is installed with position-independent code (PIC) (otherwise pure fails to compile)
Modified Paths:
--------------
trunk/dports/lang/pure/Portfile
trunk/dports/lang/pure-devel/Portfile
Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile 2009-11-14 06:54:07 UTC (rev 60508)
+++ trunk/dports/lang/pure/Portfile 2009-11-14 08:07:44 UTC (rev 60509)
@@ -73,6 +73,11 @@
ui_error "${name} ${version} requires llvm ${llvm_minimum_version} or later on ${arch} but you have llvm ${llvm_installed_version}."
return -code error "incompatible llvm version"
}
+ set llvm_cflags [exec llvm-config --cflags]
+ if {-1 != [string first -mdynamic-no-pic ${llvm_cflags}]} {
+ ui_error "${name} ${version} requires llvm be compiled using position-independent code (PIC)"
+ return -code error "incompatible llvm installation"
+ }
}
test.run yes
Modified: trunk/dports/lang/pure-devel/Portfile
===================================================================
--- trunk/dports/lang/pure-devel/Portfile 2009-11-14 06:54:07 UTC (rev 60508)
+++ trunk/dports/lang/pure-devel/Portfile 2009-11-14 08:07:44 UTC (rev 60509)
@@ -76,6 +76,11 @@
ui_error "${name} ${version} requires llvm ${llvm_minimum_version} or later on ${arch} but you have llvm ${llvm_installed_version}."
return -code error "incompatible llvm version"
}
+ set llvm_cflags [exec llvm-config --cflags]
+ if {-1 != [string first -mdynamic-no-pic ${llvm_cflags}]} {
+ ui_error "${name} ${version} requires llvm be compiled using position-independent code (PIC)"
+ return -code error "incompatible llvm installation"
+ }
}
test.run yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/56a7dd7c/attachment.html>
More information about the macports-changes
mailing list