|
|
ce24cc |
diff --git a/configure.ac b/configure.ac
|
|
|
ce24cc |
index 7d93d8b..8938c6b 100644
|
|
|
ce24cc |
--- a/configure.ac
|
|
|
ce24cc |
+++ b/configure.ac
|
|
|
ce24cc |
@@ -377,7 +377,7 @@ in
|
|
|
ce24cc |
solaris* ) LDFLAGS_DYNAMIC="";;
|
|
|
ce24cc |
*) AC_MSG_ERROR([dynamic linkage not supported for ${host_os}]);;
|
|
|
ce24cc |
esac
|
|
|
ce24cc |
-LDFLAGS_DYNAMIC="${LDFLAGS} BRLTTY_OPTIONS_LD2CC([${LDFLAGS_DYNAMIC}])"
|
|
|
ce24cc |
+LDFLAGS_DYNAMIC="BRLTTY_OPTIONS_LD2CC([${LDFLAGS_DYNAMIC}])"
|
|
|
ce24cc |
|
|
|
ce24cc |
if test "${GCC}" = "yes"
|
|
|
ce24cc |
then
|
|
|
ce24cc |
@@ -404,6 +404,7 @@ else
|
|
|
ce24cc |
fi
|
|
|
ce24cc |
|
|
|
ce24cc |
pkgconfig_flags_libs="--libs"
|
|
|
ce24cc |
+
|
|
|
ce24cc |
BRLTTY_ARG_ENABLE(
|
|
|
ce24cc |
[standalone-programs],
|
|
|
ce24cc |
[statically linked executables],
|
|
|
ce24cc |
@@ -429,40 +430,42 @@ test "${DOXYGEN}" = "false" && can_make_BrlAPIref=no || can_make_BrlAPIref=yes
|
|
|
ce24cc |
AC_SUBST([can_make_BrlAPIref])
|
|
|
ce24cc |
|
|
|
ce24cc |
AC_CACHE_CHECK([for shared object creation command], [brltty_cv_prog_make_object_shared], [dnl
|
|
|
ce24cc |
-case "${host_os}"
|
|
|
ce24cc |
-in
|
|
|
ce24cc |
- linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|elf*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="-shared"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- solaris*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="-G"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- hpux*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="-b"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- osf*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="-shared"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- darwin*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="-bundle"
|
|
|
ce24cc |
- brltty_mkshr_ld_options="-flat_namespace -undefined suppress"
|
|
|
ce24cc |
- brltty_mkshr_gcc_make="-bundle"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- msdos*)
|
|
|
ce24cc |
- brltty_mkshr_ld_make="not_supported_on_msdos"
|
|
|
ce24cc |
- brltty_mkshr_ld_options="not_supported_on_msdos"
|
|
|
ce24cc |
- brltty_mkshr_gcc_make="not_supported_on_msdos"
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
- *)
|
|
|
ce24cc |
- AC_MSG_ERROR([loadable module creation command not configured for ${host_os}])
|
|
|
ce24cc |
- ;;
|
|
|
ce24cc |
-esac
|
|
|
ce24cc |
-if test "${GCC}" = "yes"
|
|
|
ce24cc |
-then
|
|
|
ce24cc |
- brltty_cv_prog_make_object_shared="\$(CC) ${brltty_mkshr_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mkshr_ld_options}]) -o"
|
|
|
ce24cc |
-else
|
|
|
ce24cc |
- brltty_cv_prog_make_object_shared="\$(LD) ${brltty_mkshr_ld_make} ${brltty_mkshr_ld_options} -o"
|
|
|
ce24cc |
-fi])
|
|
|
ce24cc |
+ case "${host_os}"
|
|
|
ce24cc |
+ in
|
|
|
ce24cc |
+ linux*|gnu*|openbsd*|freebsd*|kfreebsd*|netbsd*|*qnx*|cygwin*|mingw*|elf*)
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="-shared"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ solaris*)
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="-G"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ hpux*)
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="-b"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ osf*)
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="-shared"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ darwin*)
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="-bundle"
|
|
|
ce24cc |
+ brltty_mkshr_ld_options="-flat_namespace -undefined suppress"
|
|
|
ce24cc |
+ brltty_mkshr_gcc_make="-bundle"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ *)
|
|
|
ce24cc |
+ AC_MSG_ERROR([loadable module creation command not configured for ${host_os}])
|
|
|
ce24cc |
+ brltty_mkshr_ld_make="NOT_SUPPORTED"
|
|
|
ce24cc |
+ brltty_mkshr_ld_options="NOT_SUPPORTED"
|
|
|
ce24cc |
+ brltty_mkshr_gcc_make="NOT_SUPPORTED"
|
|
|
ce24cc |
+ ;;
|
|
|
ce24cc |
+ esac
|
|
|
ce24cc |
+
|
|
|
ce24cc |
+ if test "${GCC}" = "yes"
|
|
|
ce24cc |
+ then
|
|
|
ce24cc |
+ brltty_cv_prog_make_object_shared="\$(CC) ${brltty_mkshr_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mkshr_ld_options}])"
|
|
|
ce24cc |
+ else
|
|
|
ce24cc |
+ brltty_cv_prog_make_object_shared="\$(LD) ${brltty_mkshr_ld_make} ${brltty_mkshr_ld_options}"
|
|
|
ce24cc |
+ fi
|
|
|
ce24cc |
+
|
|
|
ce24cc |
+ brltty_cv_prog_make_object_shared="${brltty_cv_prog_make_object_shared} ${LDFLAGS} -o"
|
|
|
ce24cc |
+])
|
|
|
ce24cc |
AC_SUBST([MKSHR], ["${brltty_cv_prog_make_object_shared}"])
|
|
|
ce24cc |
|
|
|
ce24cc |
AC_CACHE_CHECK([for make relocatable object command], [brltty_cv_prog_make_object_relocatable], [dnl
|
|
|
ce24cc |
@@ -541,9 +544,9 @@ in
|
|
|
ce24cc |
esac
|
|
|
ce24cc |
if test "${GCC}" = "yes"
|
|
|
ce24cc |
then
|
|
|
ce24cc |
- brltty_cv_prog_mklib="\$(CC) ${brltty_mklib_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>}]) -o"
|
|
|
ce24cc |
+ brltty_cv_prog_mklib="\$(CC) \$(LDFLAGS) ${brltty_mklib_gcc_make=-shared} BRLTTY_OPTIONS_LD2CC([${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>}]) -o"
|
|
|
ce24cc |
else
|
|
|
ce24cc |
- brltty_cv_prog_mklib="\$(LD) ${brltty_mklib_ld_make} ${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>} -o"
|
|
|
ce24cc |
+ brltty_cv_prog_mklib="\$(LD) \$(LDFLAGS) ${brltty_mklib_ld_make} ${brltty_mklib_ld_options+${brltty_mklib_ld_options} <name>} -o"
|
|
|
ce24cc |
fi])
|
|
|
ce24cc |
AC_SUBST([MKLIB], ["${brltty_cv_prog_mklib}"])
|
|
|
ce24cc |
|