]> granicus.if.org Git - handbrake/commit
build: Respect CC environment variable on FreeBSD.
authorYuichiro NAITO <naito.yuichiro@gmail.com>
Sat, 17 Nov 2018 08:23:53 +0000 (17:23 +0900)
committerBradley Sepos <bradley@bradleysepos.com>
Mon, 26 Nov 2018 22:59:40 +0000 (17:59 -0500)
commit9e71ecc64729fa852e270e7f0b46827897603c74
tree111c0779d0d686f8cfcd88d2eafae43a0ea44eaa
parentda1f90d8427d444386b269a3ae21a7420e9d81cb
build: Respect CC environment variable on FreeBSD.

Fixes #1674.

We use the compiler that CC environment variable indicates.
If CC is ommited, use gcc or clang which is installed.
If gcc is chosen, we need to add `-Wl,-rpath` option to make runtime linker
linking gcc's runtime libraries from installed path. For example, gcc7's
runtime libraries are installed in `/usr/local/lib/gcc7` by default.
And we also need to link libc++ first to make libc++ initializer is called
on runtime.
gtk/module.rules
make/configure.py
make/include/gcc.defs
make/variant/freebsd.defs