Skip to content
Snippets Groups Projects
Commit 74befdfb authored by Yang Tse's avatar Yang Tse
Browse files

force libtool to build static libraries with PIC on AMD64

parent d31feb8f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,14 @@ AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE(c-ares, CVS)
dnl
dnl Detect the canonical host and target build environment
dnl
AC_CANONICAL_HOST
dnl Get system canonical name
AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
AC_AIX
AC_PROG_CC
AC_PROG_INSTALL
......@@ -75,6 +83,18 @@ m4_defun([AC_LIBTOOL_CXX],[])
m4_ifdef([AC_LIBTOOL_F77], [m4_undefine([AC_LIBTOOL_F77])])
m4_defun([AC_LIBTOOL_F77],[])
dnl force libtool to build static libraries with PIC on AMD64
AC_MSG_CHECKING([if target is AMD64 (to build static libraries with PIC)])
case $host in
x86_64*linux* | *-*-cygwin)
AC_MSG_RESULT([yes])
with_pic=yes
;;
*)
AC_MSG_RESULT([no])
;;
esac
dnl libtool setup
AC_PROG_LIBTOOL
......
......@@ -127,6 +127,18 @@ m4_defun([AC_LIBTOOL_CXX],[])
m4_ifdef([AC_LIBTOOL_F77], [m4_undefine([AC_LIBTOOL_F77])])
m4_defun([AC_LIBTOOL_F77],[])
dnl force libtool to build static libraries with PIC on AMD64
AC_MSG_CHECKING([if target is AMD64 (to build static libraries with PIC)])
case $host in
x86_64*linux* | *-*-cygwin)
AC_MSG_RESULT([yes])
with_pic=yes
;;
*)
AC_MSG_RESULT([no])
;;
esac
dnl libtool setup
AC_PROG_LIBTOOL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment