kopia lustrzana https://github.com/Hamlib/Hamlib
make static really work
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@752 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.3
rodzic
f91a4d7d1c
commit
ee22400d13
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Interface - provides registering for dynamically loadable backends.
|
||||
* Copyright (c) 2000,2001 by Stephane Fillod and Frank Singleton
|
||||
*
|
||||
* $Id: register.c,v 1.11 2001-12-16 11:14:46 fillods Exp $
|
||||
* $Id: register.c,v 1.12 2001-12-16 20:02:12 fillods Exp $
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library General Public License as
|
||||
|
@ -295,13 +295,16 @@ int rig_load_backend(const char *be_name)
|
|||
/*
|
||||
* add hamlib directory here
|
||||
*/
|
||||
#ifdef HAMLIB_DLL
|
||||
snprintf (libname, sizeof (libname), PREFIX"%s"POSTFIX, be_name);
|
||||
|
||||
be_handle = lt_dlopen (libname);
|
||||
#else
|
||||
be_handle = lt_dlopen (NULL);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* external module not found? try dlopenself for backends
|
||||
* compiled in static
|
||||
*/
|
||||
if (!be_handle)
|
||||
be_handle = lt_dlopen (NULL);
|
||||
|
||||
if (!be_handle) {
|
||||
rig_debug(RIG_DEBUG_ERR, "rig: lt_dlopen(\"%s\") failed (%s)\n",
|
||||
|
|
Ładowanie…
Reference in New Issue