Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix gac on Linux if a package with kernel ext is present
Reported by Bill Allombert: compiling a simple test program via, say, `gac catp.g -o catp`, and then running it results in an error like this: [... GAP banner here ...] Loading the library and packages ... #W dlopen() error: SOMEPATH/pkg/io/bin/x86_64-pc-linux-gnu-default64-kv7/io.so:\ undefined symbol: ChangedBags This was caused by the linker invocation in gac missing the `-export-dynamic` flag This patch also fixes a second issue: While GAP deliberately links using the C compiler, the linker command in gac used the C++ compiler for linking. Now both use the C compiler, ensuring consistent behavior. Note that we quite deliberately use the C compiler to link, despite GAP containing C++ code: that code that is careful not to use the C++ standard library and for which RTTI and exceptions are disabled
- Loading branch information