When I make a Fortran executable using make
under 18.04.1, a shared library is made that is executable instead of an executable. I have attached images comparing 18.04 and 18.04.1 results. How do I make an executable instead of a shared library?
When I make a Fortran executable using make
under 18.04.1, a shared library is made that is executable instead of an executable. I have attached images comparing 18.04 and 18.04.1 results. How do I make an executable instead of a shared library?
If it can help someone. I had a similar problem. The program that I tried to compile was on an NTFS partition (shared btw windows and ubuntu). When I compile it on the NTFS partition, the output has a shared lib. I moved all my project (source code and MakeFile) on my linux partition (ext4) and I compile it again. This time the output was an exectuable file.
libmagic
unfortunately misidentifies as a shared library - see this bug report PIE executables (e.g. /usr/bin/ls) are detected as application/x-sharedlib and/or this related question Impossible to launch graphic executables in nautilus – steeldriver Sep 02 '18 at 13:47-fno-pic
(compile) and-no-pie
(link), not sure what the equivalents are for gfortran – steeldriver Sep 02 '18 at 14:21