<div dir="ltr">Hi,<div><br></div><div>This may seem like a strange question since most ghc compilation uses the NCG or llvm backends, but I want to ask about how/if one can pass CFLAGS/LDFLAGS to gcc from Cabal?<div><br></div><div>So far I tried usingĀ --gcc-options="$RPM_OPT_FLAGS" (and also just exporting CFLAGS), but as far as I can tell (from --ghc-option=-v) the options are not passed by ghc to gcc. Is the problem that ghc first compiles C code to assembler before compiling the asm to an object file?</div><div><br></div><div>(This is in the context of adding of trying to add debuginfo for C files to Fedora's Haskell packages, though I am not even sure if it is useful. Maybe it is a futile experiment?)</div><div><br></div><div>Jens</div></div></div>