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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to shared-mime-info in Ubuntu.
https://bugs.launchpad.net/bugs/1639531

Title:
  GCC compiles programs to shared object instead of executable,
  preventing GUI file managers from executing programs

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-defaults/+bug/1639531/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to