Browse Source

Problem: Linking duktape on NixOS with musl

This is a little bit of a subtle issue. The way NixOS/Nixpkgs work, they typically
wrap binaries (such as the compiler) with more complicated wrappers to handle
the paths established in Nixpkgs store and other features. In this case, the feature
that's interfering with normal flow is hardening. Without going into too much detail,
there's no way to disable _FORTIFY_SOURCE as it is always passed after any passed
arguments. Something like `gcc <PARAMETERS> -D_FORTIFY_SOURCE`.

However, this doesn't play well with musl (see https://wiki.musl-libc.org/future-ideas.html)

Solution: disable `_FORTIFY_SOURCE` if glibc is not present
pull/1959/head
Yurii Rashkovskii 6 years ago
committed by GitHub
parent
commit
2a67ba4663
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src-input/duktape.h.in

4
src-input/duktape.h.in

@ -24,6 +24,10 @@
@DUK_SINGLE_FILE@
#ifndef __GLIBC__
#undef _FORTIFY_SOURCE
#endif
/*
* BEGIN PUBLIC API
*/

Loading…
Cancel
Save