mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Fix build on AMD
PR: ports/96102 Submitted by: maintainer
This commit is contained in:
parent
9ca0cbea7f
commit
2d872d7a88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160069
@ -37,6 +37,11 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include
|
||||
BROKEN= Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
|
||||
.endif
|
||||
|
||||
# Avoid build error on amd64: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
|
||||
.if (${ARCH} == "amd64")
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
.ifdef (WITH_FFMPEG)
|
||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
||||
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
|
||||
|
@ -37,6 +37,11 @@ CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include
|
||||
BROKEN= Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
|
||||
.endif
|
||||
|
||||
# Avoid build error on amd64: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
|
||||
.if (${ARCH} == "amd64")
|
||||
CFLAGS+= -fPIC
|
||||
.endif
|
||||
|
||||
.ifdef (WITH_FFMPEG)
|
||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
||||
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
|
||||
|
Loading…
Reference in New Issue
Block a user