openmodelica.omcompiler: fix build

This commit is contained in:
Weijia Wang 2024-05-31 16:26:11 +02:00
parent cf099def27
commit 87857cb465

View File

@ -44,6 +44,11 @@ mkOpenModelicaDerivation ({
$(find ./OMCompiler -name 'Makefile*')
'';
env.CFLAGS = toString [
"-Wno-error=dynamic-exception-spec"
"-Wno-error=implicit-function-declaration"
];
preFixup = ''
for entry in $(find $out -name libipopt.so); do
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$entry"