summary refs log tree commit diff
path: root/pkgs/build-support/gcc-cross-wrapper/add-flags
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper/add-flags')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/add-flags5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/add-flags b/pkgs/build-support/gcc-cross-wrapper/add-flags
new file mode 100644
index 000000000000..ac1e58ebb812
--- /dev/null
+++ b/pkgs/build-support/gcc-cross-wrapper/add-flags
@@ -0,0 +1,5 @@
+export NIX_CFLAGS_COMPILE="@cflagsCompile@ $NIX_CFLAGS_COMPILE"
+export NIX_CFLAGS_LINK="@cflagsLink@ $NIX_CFLAGS_LINK"
+export NIX_LDFLAGS="@ldflags@ $NIX_LDFLAGS"
+export NIX_LDFLAGS_BEFORE="@ldflagsBefore@ $NIX_LDFLAGS_BEFORE"
+export NIX_GLIBC_FLAGS_SET=1