mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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
2 changed files with 10 additions and 0 deletions
|
@ -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}
|
BROKEN= Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
|
||||||
.endif
|
.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)
|
.ifdef (WITH_FFMPEG)
|
||||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
||||||
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/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}
|
BROKEN= Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
|
||||||
.endif
|
.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)
|
.ifdef (WITH_FFMPEG)
|
||||||
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
||||||
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
|
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
|
||||||
|
|
Loading…
Add table
Reference in a new issue