Corrected the order of 'd', 'p', and 's' in the generated library suffix

and corrected the logic for searching for shared libraries so that
profiled libraries are now found correctly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-06-12 22:03:36 +00:00
parent 0654d27dda
commit 5db0c0e4f3

View file

@ -129,7 +129,7 @@ char* library_name = NULL;
char *libname_suffix;
int debug = 0;
int profile = 0;
int shared = 0;
int shared = 1;
char* libext = ".a";
char* shared_libext = ".so";
char* extension;
@ -192,12 +192,12 @@ void get_arguments (int argc, char** argv)
libname_suffix = malloc (5);
*libname_suffix = 0;
if (!shared)
strcat (libname_suffix, "s");
if (profile)
strcat (libname_suffix, "p");
if (debug)
strcat (libname_suffix, "d");
if (profile)
strcat (libname_suffix, "p");
if (!shared)
strcat (libname_suffix, "s");
if (*libname_suffix) {
char tmp[5];