www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9311] New: shared library file extension incorrectly modified

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311

           Summary: shared library file extension incorrectly modified
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: g.sayol yahoo.es



On Linux, when generating a shared library and the file extension given to
"-of" is not "so", dmd always replaces it with "so".

i.e.
$ dmd -shared -oflibfoo.so.0.2.6 foo.o

generates "libfoo.so.0.2.so" when expected "libfoo.so.0.2.6"

"release" version number is incorrectly replaced by "so"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 12 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com



08:15:11 PST ---
My guess is this is to blame in dmars.c:

// None of that a.out stuff. Use explicit exe file name, or
// generate one from name of first source file.
global.params.exefile = FileName::forceExt(global.params.exefile,
global.dll_ext)->toChars();

If the only thing wanted is to replace "a.out" with "a.so", then `forceExt`
should check the extension before attempting to replace it. 

 Walter what's your take?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 13 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
            Version|D2                          |D1 & D2



13:37:05 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1944

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 28 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/fec3a379278f7d5b096295c24ff88b0fc5cbd3fa
fix Issue 9311 - shared library file extension incorrectly modified

https://github.com/D-Programming-Language/dmd/commit/ab4ec8df244d3948e56dc88efda2aba571b4969b


fix Issue 9311 - shared library file extension incorrectly modified

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311




Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7fab11e61609ada6eee4140f0888305b13262b7e


fix Issue 9311 - shared library file extension incorrectly modified

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9311


Jordi Sayol <g.sayol yahoo.es> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



Fixed bug with Walter's pull request
https://github.com/D-Programming-Language/dmd/pull/1944

Many thanks!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 05 2013