[fpc-pascal] warning: link.res contains output sections; did you forget -T?
Victor Matuzenko
vitek03 at gmail.com
Sat Oct 18 13:42:44 CEST 2014
04.03.2013 16:39, Sven Barth пишет:
> Am 04.03.2013 13:35, schrieb Juha Manninen:
>> I understand it comes from "ld". Is patching "ld" the only way?
> No, this can't be changed without patching ld. Though you could try
> the new internal ELF linker on systems that already support it (AFAIK
> i386, x86_64 and MIPS (and maybe also ARM)), but I don't know whether
> it already supports all features (like building shared libraries).
What do you think about suppressing the warning inside fpc by filtrating
ld stderr? I do it manually in my Makefile:
ifeq ($(OPERATING_SYSTEM),Linux)
LD_WAR:=ld: warning: link.res contains output sections; did you forget -T?$$
FPC_FILTER:=3>&1 1>&2 2>&3 | ( $(GREP) -v '$(WAR)' 3>&2 2>&1 1>&3 ||
$(NOP) )
else
FPC_FILTER:=
endif
…
$(call CD,$(BUILD_CURDIR)) && $(FPC) $(FPC_OPTIONS) $(PROGNAME).pp
-o$(OUTPROGNAME)$(EXEEXT) $(FPC_FILTER)
but I would be happy if fpc will do something like this inside itself :)
--
Victor Matuzenko (Виктор Матузенко)
More information about the fpc-pascal
mailing list