* Sérgio Basto:

> [3]
> export LDFLAGS="%{?__global_ldflags} -shared"

Not sure why you think this would work.  It prevents the compiler from
creating any executables at all.

The problem is earlier, here:

libtool: link: g++ -fPIC -DPIC -shared -nostdlib
  /usr/lib/gcc/i686-redhat-linux/9/../../../crti.o
  /usr/lib/gcc/i686-redhat-linux/9/crtbeginS.o .libs/ConfigFile.o
  .libs/Preset.o .libs/PresetLoader.o .libs/timer.o .libs/KeyHandler.o
  .libs/PresetChooser.o .libs/TimeKeeper.o .libs/PCM.o
  .libs/PresetFactory.o .libs/fftsg.o .libs/wipemalloc.o
  .libs/PipelineMerger.o .libs/PresetFactoryManager.o .libs/projectM.o
  .libs/TestRunner.o -Wl,--whole-archive
  ../libprojectM/MilkdropPresetFactory/.libs/libMilkdropPresetFactory.a
  ../libprojectM/NativePresetFactory/.libs/libNativePresetFactory.a
  ../libprojectM/Renderer/.libs/libRenderer.a -Wl,--no-whole-archive -lGL
  -ldl -L/usr/lib/gcc/i686-redhat-linux/9
  -L/usr/lib/gcc/i686-redhat-linux/9/../../.. -lstdc++ -lm -lc -lgcc_s
  /usr/lib/gcc/i686-redhat-linux/9/crtendS.o
  /usr/lib/gcc/i686-redhat-linux/9/../../../crtn.o -Wl,-z,now
  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g
  -fstack-protector-strong -grecord-gcc-switches
  -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
  -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686
  -mtune=generic -msse2 -mfpmath=sse -mstackrealign -pthread -Wl,-z
  -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now
  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -pthread -pthread
  -Wl,-soname -Wl,libprojectM.so.3 -o .libs/libprojectM.so.3.1.1

That linker command is just wrong.  You just can't use -nostdlib in this
way.  There is no reference to libgcc, which is implicitly provided
without -nostdlib.

I don't know why libtool attempts to link with -nostdlib.

Thanks,
Florian
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to