mirror of https://github.com/mpv-player/mpv
Fix the build on OpenBSD and FreeBSD
Without this change, the compiler uses by default the "talloc.h" file installed by the package libtalloc within /usr/local/include. Found and tested on OpenBSD but FreeBSD has the same patch on its ports tree.
This commit is contained in:
parent
c0641c63fc
commit
38c8f5ea57
2
wscript
2
wscript
|
@ -813,7 +813,7 @@ def configure(ctx):
|
||||||
ctx.load('detections.devices')
|
ctx.load('detections.devices')
|
||||||
|
|
||||||
if ctx.env.DEST_OS in ('freebsd', 'openbsd'):
|
if ctx.env.DEST_OS in ('freebsd', 'openbsd'):
|
||||||
ctx.env.CFLAGS += ['-I/usr/local/include']
|
ctx.env.CFLAGS += ['-I.', '-I..', '-I/usr/local/include']
|
||||||
ctx.env.LINKFLAGS += ['-L/usr/local/lib']
|
ctx.env.LINKFLAGS += ['-L/usr/local/lib']
|
||||||
|
|
||||||
if ctx.env.DEST_OS == 'netbsd':
|
if ctx.env.DEST_OS == 'netbsd':
|
||||||
|
|
Loading…
Reference in New Issue