From c26388c00e2648eaede9b997a5b39bf5a2372a02 Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 28 Oct 1999 18:11:05 +0000 Subject: [PATCH] [project @ 1999-10-28 18:11:05 by sof] When generating C stubs, honour -osuf option --- ghc/driver/ghc.lprl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghc/driver/ghc.lprl b/ghc/driver/ghc.lprl index 2541fe1..cacd94f 100644 --- a/ghc/driver/ghc.lprl +++ b/ghc/driver/ghc.lprl @@ -1470,7 +1470,9 @@ Now the Haskell compiler, C compiler, and assembler local ($hsc_out_s_stub); local ($hsc_out_o_stub); ($ofile_s_stub_target = $ofile_c_stub_target) =~ s/\.(.*)$/\.s/; - ($ofile_o_stub_target = $ofile_c_stub_target) =~ s/\.(.*)$/\.o/; + ($ofile_o_stub_target = $ofile_c_stub_target) =~ s/\.(.*)$//; + + $ofile_o_stub_target = &osuf_ify($ofile_o_stub_target, "o"); if ($do_cc) { &runGcc (0, $ofile_c_stub_target, $ofile_s_stub_target); &runAs ($ofile_o_stub_target, $ofile_s_stub_target); -- 1.7.10.4