gsm: support for cross-compilation

This commit is contained in:
Rick van Schijndel 2021-02-27 00:46:35 +01:00 committed by Frederik Rietdijk
parent 0e7717cb1c
commit 7ad8fdca00

View file

@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
};
patchPhase = ''
substituteInPlace Makefile \
--replace "= gcc " "?= gcc "
# Fix include directory
sed -e 's,$(GSM_INSTALL_ROOT)/inc,$(GSM_INSTALL_ROOT)/include/gsm,' -i Makefile
'' + optionalString (!staticSupport) (