Page MenuHomeFreeBSD

converters/lua-iconv: fix build on armv7
ClosedPublic

Authored by pkubaj on Aug 24 2019, 12:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 27, 6:34 AM
Unknown Object (File)
Mon, Jun 22, 5:42 PM
Unknown Object (File)
Thu, Jun 11, 12:40 AM
Unknown Object (File)
Wed, Jun 10, 9:57 PM
Unknown Object (File)
Wed, Jun 10, 11:30 AM
Unknown Object (File)
Wed, Jun 10, 9:19 AM
Unknown Object (File)
Apr 20 2026, 12:22 PM
Unknown Object (File)
Apr 16 2026, 9:40 AM

Details

Summary

armv7 requires -fPIC too.

PR: 239623

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 26070
Build 24610: arc lint + arc unit

Event Timeline

Approved. IMHO there should also be an entry for armv6.

This revision is now accepted and ready to land.Aug 31 2019, 11:13 AM

Why isn't this just CFLAGS+=-fPIC ?

Because e.g. powerpc64 doesn't need it.

This revision was automatically updated to reflect the committed changes.

Why isn't this just CFLAGS+=-fPIC ?

Because e.g. powerpc64 doesn't need it.

What that says to me is that we need a standard ${CFLAGS_PIC} variable or some such, which is defined to -fPIC on most platforms and empty on powerpc64, rather than pollute every port makefile with an ever-changing list of which arches need -fPIC and which don't.