kopia lustrzana https://gitlab.com/sane-project/backends
Do not use STRINGIFY for LIBDIR but pass "LIBDIR" from build system
rodzic
35ef89dd0f
commit
e47cb8d2b4
|
@ -24,7 +24,7 @@ USB_LIBS = @USB_LIBS@
|
|||
SCSI_LIBS = @SCSI_LIBS@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
|
||||
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane"
|
||||
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\""
|
||||
|
||||
V_MAJOR = @V_MAJOR@
|
||||
V_MINOR = @V_MINOR@
|
||||
|
|
|
@ -1887,7 +1887,7 @@ target_alias = @target_alias@
|
|||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="$(libdir)/sane"
|
||||
AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -DLIBDIR="\"$(libdir)/sane\""
|
||||
AM_LDFLAGS = @STRICT_LDFLAGS@
|
||||
# The -rpath option is added because we are creating _LTLIBRARIES based
|
||||
# on configure substitution. This causes automake to not know the
|
||||
|
|
|
@ -430,7 +430,7 @@ load (struct backend *be)
|
|||
|
||||
if (path)
|
||||
{
|
||||
src_len = strlen (path) + strlen (STRINGIFY (LIBDIR)) + 1 + 1;
|
||||
src_len = strlen (path) + strlen (LIBDIR) + 1 + 1;
|
||||
src = malloc (src_len);
|
||||
if (!src)
|
||||
{
|
||||
|
@ -438,11 +438,11 @@ load (struct backend *be)
|
|||
return SANE_STATUS_NO_MEM;
|
||||
}
|
||||
orig_src = src;
|
||||
snprintf (src, src_len, "%s:%s", path, STRINGIFY (LIBDIR));
|
||||
snprintf (src, src_len, "%s:%s", path, LIBDIR);
|
||||
}
|
||||
else
|
||||
{
|
||||
src = STRINGIFY (LIBDIR);
|
||||
src = LIBDIR;
|
||||
src = strdup (src);
|
||||
if (!src)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue