Comment 17 for bug 1639531

Revision history for this message
Applegeek (gromitsprinkles) wrote :

This isn't a bug. Ubuntu has setup GCC with "pie" flag enabled for some unknown reason, and this causes executable output to be tagged as shared library.

Use "-no-pie" with GCC when compiling.

If using Qt Creator / QMake add this to your project file

unix:QMAKE_LFLAGS += -no-pie

All will work fine after that, and your system will see your local GCC compiled executables tagged as "executable", and Nautilus or any other file browser will be able to run it via click as usual.

Source:
https://stackoverflow.com/questions/45329372/ubuntu-recognizes-executable-as-shared-library-and-wont-run-it-by-clicking