mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
Remove -PIE from linker args, as it seems to cause issues on the NIX CI
This commit is contained in:
parent
84c58b4bd9
commit
da62db17fd
@ -12,16 +12,16 @@
|
|||||||
#
|
#
|
||||||
# (2) is achieved by passing multiple options, separated by spaces, in each of `CFLAGS` and `LDFLAGS`.
|
# (2) is achieved by passing multiple options, separated by spaces, in each of `CFLAGS` and `LDFLAGS`.
|
||||||
# These options are `-O3` for the c flags, and `-Wl,-pie` for the linker flags. They do not change the
|
# These options are `-O3` for the c flags, and `-Wl,-pie` for the linker flags. They do not change the
|
||||||
# semantics of the resulting code (`-O3` simply optimises it more, and `-Wl,-pie` emits position
|
# semantics of the resulting code (`-O3` simply optimises it more, and `-Wl,-S` removes debugging information
|
||||||
# independent code in the final executable), but do check that we correctly split up the environment
|
# from the final executable), but do check that we correctly split up the environment variables when we
|
||||||
# variables when we pass them to the C compiler.
|
# pass them to the C compiler.
|
||||||
|
|
||||||
cd ./library/
|
cd ./library/
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
export CFLAGS="-I./library/ -O3"
|
export CFLAGS="-I./library/ -O3"
|
||||||
export LDFLAGS="-L./library/ -Wl,-pie"
|
export LDFLAGS="-L./library/ -Wl,-S"
|
||||||
export LDLIBS="-lexternalc"
|
export LDLIBS="-lexternalc"
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./library/"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./library/"
|
||||||
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:./library/"
|
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:./library/"
|
||||||
|
Loading…
Reference in New Issue
Block a user