Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #239623
| From | Tixy <tixy@yxit.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: gcc-10: options order important? |
| Date | 2021-09-03 15:20 +0200 |
| Message-ID | <CThgR-5P8-3@gated-at.bofh.it> (permalink) |
| References | <CTeCm-42y-11@gated-at.bofh.it> <CThgR-5P8-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 2021-09-03 at 14:10 +0100, Tixy wrote: > On Fri, 2021-09-03 at 12:24 +0200, Piotr A. Dybczyński wrote: > > Hi, > > > > in contrary to previous versions, now in Debian 11 with gcc-10: > > > > gcc aa.c -lm -o aa works, but > > > > gcc -lm aa.c -o aa does not work, saying: > > [...] > > > It seems that an option -lm cannot be placed in an arbitrary place which I used to > > do. Is this intentional ? > > I found this too, I just modified my Makefiles to have libraries after > input files. > > A man page a found online [1] says linking happens as Greg described, > and this is true looking at a 6 year old copy of that page on > archive.org. So seems strange that for many years my Makefiles have > worked with Libraries specified before inputs that use them. Correction... 'for many years my Makefiles have worked with Libraries specified _after_ inputs that use them' -- Tixy
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
gcc-10: options order important? "Piotr A. Dybczyński" <piotr@dybczynski.pl> - 2021-09-03 12:30 +0200
Re: gcc-10: options order important? Greg Wooledge <greg@wooledge.org> - 2021-09-03 13:40 +0200
Re: gcc-10: options order important? Tixy <tixy@yxit.co.uk> - 2021-09-03 15:20 +0200
Re: gcc-10: options order important? Greg Wooledge <greg@wooledge.org> - 2021-09-03 19:00 +0200
Re: gcc-10: options order important? <tomas@tuxteam.de> - 2021-09-03 20:50 +0200
Re: gcc-10: options order important? Tixy <tixy@yxit.co.uk> - 2021-09-03 15:20 +0200
Re: gcc-10: options order important? Sven Joachim <svenjoac@gmx.de> - 2021-09-03 21:00 +0200
csiph-web