mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
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:
parent
0654d27dda
commit
5db0c0e4f3
1 changed files with 5 additions and 5 deletions
10
which_lib.c
10
which_lib.c
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue