I am building the same library (TI GBM) in two different build environments (buildroot and Yocto). The binaries from Yocto work, but the binaries from buildroot fail due to a segmentation fault. I compared the makefiles generated by autoconfig in the two build systems and noticed differences in the LDFLAGS.
Yocto:
LDFLAGS = -L/home/kyle/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-rpath-link,/home/kyle/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib -Wl,-O1 -Wl,--hash-style=gnu
Buildroot:
LDFLAGS =
How is Yocto adding these new linker directives to the makefile?