--- - branch: MAIN date: Tue Nov 7 16:57:58 UTC 2017 files: - new: '1.186' old: '1.185' path: pkgsrc/mk/compiler/gcc.mk pathrev: pkgsrc/mk/compiler/gcc.mk@1.186 type: modified id: 20171107T165758Z.de68b9b405a9dda788cf6198552f6a3eb762c99c log: | Always add "-fPIC" when linking with PKGSRC_MKPIE This makes sure a simple "cc -o hello hello.c" will still build a valid executable. It does not let us detect when CFLAGS or LDFLAGS are ignored anymore, but it is legitimate for packages to expect it to work without any additional parameter. ld(1) does not expect "-fPIC" but it seems to be ignored by our wrappers in this case, so no disruption is expected there. module: pkgsrc subject: 'CVS commit: pkgsrc/mk/compiler' unixtime: '1510073878' user: khorben