]> git.pld-linux.org Git - packages/hpklinux.git/blob - x32.patch
- updated to 4.18.03-1
[packages/hpklinux.git] / x32.patch
1 --- hpklinux-4.14.07/configure.ac~
2 +++ hpklinux-4.14.07/configure.ac
3 @@ -751,6 +751,7 @@ dnl   $ar_gcc_distro = Target Distribution (suse, slackware, etc)
4  
5  
6  AC_MSG_CHECKING(target architecture)
7 +ar_gcc_machine=`$CC -dumpmachine`
8  ar_gcc_arch=`$CC -dumpmachine | $AWK -F- "{ print \\$[1] }"`
9  ar_gcc_distro=`$CC -dumpmachine | $AWK -F- "{ print \\$[2] }"`
10  AC_MSG_RESULT("distro:$ar_gcc_distro arch:$ar_gcc_arch")
11 @@ -758,8 +759,16 @@ AC_MSG_RESULT("distro:$ar_gcc_distro arch:$ar_gcc_arch")
12  AC_SUBST(VENDOR,$ar_gcc_distro)
13  AC_SUBST(ARCH,$ar_gcc_arch)
14  if test "$ar_gcc_arch" = "x86_64" ; then
15 +  case "$ar_gcc_machine" in
16 +    *-gnux32)
17 +  AC_SUBST(HPI_64BIT)
18 +  AC_SUBST(LIB_PATH,libx32)
19 +    ;;
20 +    *)
21    AC_SUBST(HPI_64BIT,"-D HPI_BUILD_64BIT")
22    AC_SUBST(LIB_PATH,lib64)
23 +    ;;
24 +  esac
25  else
26    AC_SUBST(HPI_64BIT)
27    AC_SUBST(LIB_PATH,lib)
This page took 0.06854 seconds and 3 git commands to generate.