martoony
02-21-2001, 05:02 PM
Hi! I'm writing programs under Linux Mandrake 7.2 and am tired of typing in the directories of my personal libraries (namely pgplot) when compiling. For example, in the following command:
g77 -o progname progsource.f -L/librarydirectory -llibrary
I would like to skip the -L part. So, how do I get /usr/bin/ld to automatically search librarydirectory? I tried modifying the /etc/ls.so.conf file, but it still doesn't work. Can anyone give me a step by step guide to doing this? Thanks a lot!
g77 -o progname progsource.f -L/librarydirectory -llibrary
I would like to skip the -L part. So, how do I get /usr/bin/ld to automatically search librarydirectory? I tried modifying the /etc/ls.so.conf file, but it still doesn't work. Can anyone give me a step by step guide to doing this? Thanks a lot!