tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Assembling with as(1) from cwrappers

			Hello again,

On 27/10/2017 19:27, Pierre Pronchery wrote:
> I notice that in cwrappers, bin/normalise-cc.c is compiled in the
> wrapper for as(1) without modification. However, it defaults to building
> executables: [...]
> I could not come up with a tentative fix yet, but feel free to beat me
> to it. To reproduce the issue, it is currently not possible to build
> lang/g95 in pkgsrc with PKGSRC_MKPIE=yes:

Turns out, with the right approach, the fix is trivial (attached here).

OK to commit?

diff --git a/pkgtools/cwrappers/files/bin/base-wrapper.c b/pkgtools/cwrappers/files/bin/base-wrapper.c
index b15ea6068fc..1697f415b04 100644
--- a/pkgtools/cwrappers/files/bin/base-wrapper.c
+++ b/pkgtools/cwrappers/files/bin/base-wrapper.c
@@ -130,6 +130,8 @@ main(int argc, char **argv)
 #if defined(WRAPPER_LD)
+#elif defined(WRAPPER_AS)
+	current_operation_mode = mode_assemble;

Home | Main Index | Thread Index | Old Index