www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17216] New: OSX: `rdmd -shared -oflibfun.dylib fun.d` and

https://issues.dlang.org/show_bug.cgi?id=17216

          Issue ID: 17216
           Summary: OSX: `rdmd -shared -oflibfun.dylib fun.d` and otool -L
                    libfun.dylib points to libfun.dylib.tmp
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com

v2.072.2
rdmd build 20170108

fun.d:whatever

rdmd -v --force --build-only -shared -oflibfun.dylib fun.d
creates libfun.dylib

otool -L libfun.dylib
libfun.dylib:
        libfun.dylib.tmp (compatibility version 0.0.0, current version 0.0.0)


libfun.dylib.tmp is wrong, and will cause errors when linking via `-lfun`, eg:
`dyld: Library not loaded: libfun.dylib.tmp`

This used to work on OSX (and works on linux)

--
Feb 20 2017