[Bug 225377] archivers/liblz4: setting TARGET_ARCH variable prevent to compile

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 10 15:04:58 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225377

Martin Waschbüsch <martin at waschbuesch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress

--- Comment #5 from Martin Waschbüsch <martin at waschbuesch.de> ---
(In reply to Olivier Cochard from comment #4)

Thank you, Olivier,

I was able to reproduce the described error.
Also, your patch does 'solve' the issue, but by forcibly unsetting the
environment variable so that, in the end, running
env 'TARGET_ARCH=armv6' make
env 'TARGET_ARCH=i386' make
env 'TARGET_ARCH=amd64' make

all result in the very same library being built (namely the version for the
arch you are running on):

file /usr/ports/archivers/liblz4/work/stage/usr/local/lib/liblz4.so.1.8.1
/usr/ports/archivers/liblz4/work/stage/usr/local/lib/liblz4.so.1.8.1: ELF
64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked,
stripped

I am all for improving the port, but this looks very wrong to me.
All the same, I'll dig into this some more and get back to you.

Martin

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list