tiny patch

Developers
2010-03-19
2013-05-13
  • Dima Sorkin
    Dima Sorkin
    2010-03-19

    To allow GCC create shared libraries:

    diff -git a/Makefiles/gmake/app/gcc.mak b/Makefiles/gmake/app/gcc.mak
    index 5f45f8f..4fb225c 100644
    -- a/Makefiles/gmake/app/gcc.mak
    +++ b/Makefiles/gmake/app/gcc.mak
    @@ -225,9 +225,9 @@ endif
    # _USE_NOSTDLIB
    else
    ifndef USE_STATIC_LIBGCC
    -release-shared : LDFLAGS += -shared-libgcc
    -dbg-shared : LDFLAGS += -shared-libgcc
    -stldbg-shared : LDFLAGS += -shared-libgcc
    +release-shared : LDFLAGS += -shared -shared-libgcc
    +dbg-shared : LDFLAGS += -shared -shared-libgcc
    +stldbg-shared : LDFLAGS += -shared -shared-libgcc
    endif
    ifndef WITHOUT_STLPORT
    STDLIBS = ${STLPORT_LIB}
    diff -git a/Makefiles/gmake/lib/gcc.mak b/Makefiles/gmake/lib/gcc.mak
    index 6e5a1b2..e92bcba 100644
    -- a/Makefiles/gmake/lib/gcc.mak
    +++ b/Makefiles/gmake/lib/gcc.mak
    @@ -281,9 +281,9 @@ endif

    ifeq ($(OSNAME),windows)
    ifndef USE_STATIC_LIBGCC
    -dbg-shared: LDFLAGS += -shared-libgcc
    -stldbg-shared: LDFLAGS += -shared-libgcc
    -release-shared: LDFLAGS += -shared-libgcc
    +dbg-shared: LDFLAGS += -shared -shared-libgcc
    +stldbg-shared: LDFLAGS += -shared -shared-libgcc
    +release-shared: LDFLAGS += -shared -shared-libgcc
    endif
    dbg-shared: LDFLAGS += -Wl,-out-implib=${LIB_NAME_OUT_DBG},-enable-auto-image-base
    stldbg-shared: LDFLAGS += -Wl,-out-implib=${LIB_NAME_OUT_STLDBG},-enable-auto-image-base

     
  • > To allow GCC create shared libraries:

    What then I build ten years?

     
  • Dima Sorkin
    Dima Sorkin
    2010-03-23

    - On GNU/Linux for ten years you build what you intend, i.e. shared libraries.
    - On MinGW it wan't do. Linking to ".dll" will fail without my additions.
      GCC without "-shared" does not understand what is wanted from it…
    - On CygWin even with my additions linking will fail on later stage.
      Seems that something is screwed up with the GCC's c++ lib on the latest CygWin.

    See my message at
    https://sourceforge.net/projects/stlport/forums/forum/490891/topic/3502412

    I did not make analysis beyond these empirical observations.

    Thanks,
      Dima.

     
  • Dima Sorkin
    Dima Sorkin
    2010-05-19

    Is anyone who has permissions willing to push this to central repository ? Or list any objections ?