www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Object file extensions

reply Russel Winder <russel winder.org.uk> writes:
The tradition (AIUI) on Linux is for PIC object files to have
extension .os. DMD however refuses to recognize this extension. Is this
something to fix?
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
Jan 21 2014
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/21/2014 10:38 AM, Russel Winder wrote:
 The tradition (AIUI) on Linux is for PIC object files to have
 extension .os. DMD however refuses to recognize this extension. Is this
 something to fix?
Hmm, I've never heard of that tradition! And: cc foo.c -c -fPIC generates foo.o, not foo.os (on Ubuntu).
Jan 21 2014
next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Tue, Jan 21, 2014 at 12:29:56PM -0800, Walter Bright wrote:
 On 1/21/2014 10:38 AM, Russel Winder wrote:
The tradition (AIUI) on Linux is for PIC object files to have
extension .os. DMD however refuses to recognize this extension. Is this
something to fix?
Hmm, I've never heard of that tradition! And: cc foo.c -c -fPIC generates foo.o, not foo.os (on Ubuntu).
I would've thought it was .so, not .os. Perhaps a typo on the part of the OP? T -- Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln
Jan 21 2014
prev sibling next sibling parent Brad Roberts <braddr puremagic.com> writes:
On 1/21/14 12:36 PM, H. S. Teoh wrote:
 On Tue, Jan 21, 2014 at 12:29:56PM -0800, Walter Bright wrote:
 On 1/21/2014 10:38 AM, Russel Winder wrote:
 The tradition (AIUI) on Linux is for PIC object files to have
 extension .os. DMD however refuses to recognize this extension. Is this
 something to fix?
Hmm, I've never heard of that tradition! And: cc foo.c -c -fPIC generates foo.o, not foo.os (on Ubuntu).
I would've thought it was .so, not .os. Perhaps a typo on the part of the OP?
Not for the object file coming out of the compiler. Shared libraries are produced by the librarian (ld, link, etc).
Jan 21 2014
prev sibling next sibling parent "David Nadlinger" <code klickverbot.at> writes:
On Tuesday, 21 January 2014 at 20:29:57 UTC, Walter Bright wrote:
 On 1/21/2014 10:38 AM, Russel Winder wrote:
 The tradition (AIUI) on Linux is for PIC object files to have
 extension .os. DMD however refuses to recognize this 
 extension. Is this
 something to fix?
Hmm, I've never heard of that tradition!
I haven't come across that either. Maybe some build system (or helper program like libtool) does/did this under the hood? David
Jan 21 2014
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2014-01-21 21:29, Walter Bright wrote:

 Hmm, I've never heard of that tradition!
I haven't seen it either. -- /Jacob Carlborg
Jan 22 2014
prev sibling parent "Markus Dittrich" <haskelladdict gmail.com> writes:
On Tuesday, 21 January 2014 at 18:38:44 UTC, Russel Winder wrote:
 The tradition (AIUI) on Linux is for PIC object files to have
 extension .os. DMD however refuses to recognize this extension. 
 Is this
 something to fix?
Instead of .os you perhaps meant to write .so, which would be the extension for a Linux shared object file (and thus PIC)?
Jan 22 2014