Skip to content
This repository was archived by the owner on Feb 3, 2021. It is now read-only.

xyproto/ldfpcfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ldfpcfix

This little utility patches /usr/bin/ld to silence the annoying warning that appears when compiling with fpc:

Free Pascal Compiler version 3.0.2 [2017/07/25] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Linking main
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
5 lines compiled, 0.1 sec

This warning has existed for years and neither ld nor fpc seems to think it's annoying enough to fix.

After running ldfpcfix as root, if ld exists in /usr/bin/ld, the output is:

Free Pascal Compiler version 3.0.2 [2017/07/25] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling main.pas
Linking main
5 lines compiled, 0.0 sec

Read the sources if you need to verify exactly what ldfpcfix does.

It's not pretty, but it works. Don't use it if you don't like it.

General information

Licensed under GPL2.

Download

Download the precompiled binary for 64-bit Linux here.

About

Remove the ld warning that appears every time the fpc compiler is used

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages