Please sign in to comment.
BUILD: Add partial option for statically linking system libraries
Eventually this should probably also use -static or -Wl,-Bstatic for non-Darwin platforms. For now, it only does these things: 1. Switches to use --static-libs/--static when getting dependencies from the third-party libraries with configuration scripts, since this is needed to get the correct -framework flags from SDL2 and extra dependencies from FreeType2; 2. Rewrites linker flags from -lfoo to $staticlibpath/lib/libfoo.a, since this is required in order to get the Apple linker to do static linking whenever there is a shared library available. This commit changes the recently added --enable-static flag name since that flag DOES NOT actually generate static builds, it only changes which dependencies are requested from third party library configuration scripts.
- Loading branch information...