summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2020-05-18 07:19:32 +1200
committerKent Fredric <kentnl@gentoo.org>2020-06-20 15:18:04 +1200
commit5612f43dabdac343600e5293e9c97261f3edeafc (patch)
treedc3276c2e5c6cb3bf11cf8df7418663f26b969f0 /dev-perl/Ace/files/Ace-1.92-DARWIN_DEF
parentapp-admin/rsyslog: USE=zeromq needs >=net-libs/czmq-4[drafts] (diff)
downloadgentoo-5612f43dabdac343600e5293e9c97261f3edeafc.tar.gz
gentoo-5612f43dabdac343600e5293e9c97261f3edeafc.tar.bz2
gentoo-5612f43dabdac343600e5293e9c97261f3edeafc.zip
dev-perl/Ace: Add CC/AR/LD/RANLIB toolchain love
This logic is highly experimental, but it does work for me ( though I don't do what ago does with LD because its too spicy ) This set of changes patches acelib so that all gcc/cc/ar calls can be overloaded externally, though this somewhat defeats the point of most of these files, as some of them only differed in wether they said "cc" or "gcc". The downside is I *had* to rework how the elibc_glibc block worked, because as it was *conditional*, and patched lines adjacent to the lines changed in -toolchain.patch, the existing patch could *only* be adapted to work dependent on the -toolchain patch. Instead, the essential variable overrides are performed externally via `make` arguments, as this has the same outcome. Any logic I didn't fully understand I left in place. And I had to get clever with names, because acelib already has an internal variable called "CC", and its value .... contains then entire set of compile parameters for the compiler! Also, the use of these TARGET_ seems to be less prone to conflict with values that do similar things in perl space, where doing something like LD="something-ld" can be fatal, as perl space doesn't expect LD to be an actaul LD, but a CCLD, and passes flags LD doesn't support. But there will *probably* be a few bugs in this approach, I'm no Make wizard. Bug: https://bugs.gentoo.org/723152 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Diffstat (limited to 'dev-perl/Ace/files/Ace-1.92-DARWIN_DEF')
-rw-r--r--dev-perl/Ace/files/Ace-1.92-DARWIN_DEF5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-perl/Ace/files/Ace-1.92-DARWIN_DEF b/dev-perl/Ace/files/Ace-1.92-DARWIN_DEF
new file mode 100644
index 000000000000..5e4462e4070a
--- /dev/null
+++ b/dev-perl/Ace/files/Ace-1.92-DARWIN_DEF
@@ -0,0 +1,5 @@
+NAME = DARWIN
+COMPILER = $(TARGET_CC) -fwritable-strings -DACEDB4 -DPOSIX
+LINKER = $(TARGET_LD)
+
+LIBS = -lm