mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
configure: add /usr/local on FreeBSD, also NetBSD/DragonFly
In my opinion this should be unneeded and unclean, which is why I removed it some time ago. But apparently this is a convenience for BSD users (so they don't have to use --extra-cflags), so add it back.
This commit is contained in:
parent
2599729e96
commit
0a6654ce2f
10
configure
vendored
10
configure
vendored
@ -860,6 +860,16 @@ extra_cflags="-I. -D_GNU_SOURCE $extra_cflags"
|
||||
_timer=timer-linux.c
|
||||
_getch=getch2.c
|
||||
|
||||
if freebsd ; then
|
||||
extra_ldflags="$extra_ldflags -L/usr/local/lib"
|
||||
extra_cflags="$extra_cflags -I/usr/local/include"
|
||||
fi
|
||||
|
||||
if netbsd || dragonfly ; then
|
||||
extra_ldflags="$extra_ldflags -L/usr/pkg/lib"
|
||||
extra_cflags="$extra_cflags -I/usr/pkg/include"
|
||||
fi
|
||||
|
||||
if darwin; then
|
||||
extra_cflags="-mdynamic-no-pic $extra_cflags"
|
||||
_timer=timer-darwin.c
|
||||
|
Loading…
Reference in New Issue
Block a user