mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
Fix build on i386 and aarch64 by enabling -fPIC
Tested on poudriere i386 and amd64 tested build on RPi3 PR: 214864 Reported by: @emaste
This commit is contained in:
parent
578d9ccbd6
commit
c2d4bf63db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480886
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ccmath
|
||||
PORTVERSION= 2.2.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= SUNSITE/libs
|
||||
|
||||
@ -12,9 +12,8 @@ COMMENT= Mathematics library with many different functions
|
||||
|
||||
LICENSE= LGPL20
|
||||
|
||||
BROKEN_aarch64= fails to link: can't create dynamic relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol: bias in readonly segment; recompile object files with -fPIC
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
PLIST_FILES= include/ccmath.h lib/libccm.a lib/libccm.so lib/libccm.so.1
|
||||
|
||||
PORTDOCS= *
|
||||
SRC_DIRS= cfit complex fft geom intg matrix roots sfunc simu sort statf \
|
||||
@ -24,9 +23,7 @@ OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
COPT= -fPIC
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${CP} ${WRKSRC}/matrix/supp/solv.c ${WRKSRC}/matrix
|
||||
|
@ -1,4 +0,0 @@
|
||||
include/ccmath.h
|
||||
lib/libccm.a
|
||||
lib/libccm.so
|
||||
lib/libccm.so.1
|
Loading…
x
Reference in New Issue
Block a user