[cmake-developers] GCC HPPA linker errors

Chuck Atkins chuck.atkins at kitware.com
Thu Nov 6 12:00:12 EST 2014


Rats!  I keep forgetting about the bootstrap.  I added an HP-UX block and
adjusted the logic to be a bit more consistent with the other "determine
system" blocks by moving the parisc determination out on it's own.  How's
this?

# Determine whether this is HP-UX
if echo "${cmake_system}" | grep HP-UX >/dev/null 2>&1; then
  cmake_system_hpux=true
else
  cmake_system_hpux=false
fi

# Determine whether this is Linux
if echo "${cmake_system}" | grep Linux >/dev/null 2>&1; then
  cmake_system_linux=true
else
  cmake_system_linux=false
fi

# Determine whether this is a PA-RISC machine
if ${cmake_system_linux}; then
  if uname -m | grep parisc >/dev/null 2>&1; then
    cmake_machine_parisc=true
  else
    cmake_machine_parisc=false
  fi
elif ${cmake_system_hpux}; then
  if uname -m | grep ia64 >/dev/null 2>&1; then
    cmake_machine_parisc=false
  else
    cmake_machine_parisc=true
  fi
fi





- Chuck

On Thu, Nov 6, 2014 at 11:27 AM, Brad King <brad.king at kitware.com> wrote:

> On 11/06/2014 11:22 AM, Chuck Atkins wrote:
> > The branch has been updated, merged, squashed, and remerged to next
>
> Thanks.  This hunk:
>
> > # Determine whether this is Linux
> > if echo "${cmake_system}" | grep Linux >/dev/null 2>&1; then
> >   cmake_system_linux=true
> >   # find out if it is a HP PA-RISC machine
> >   if uname -m | grep parisc >/dev/null 2>&1; then
> >     cmake_machine_parisc=true
> >   else
> >     cmake_machine_parisc=false
> >   fi
> > else
> >   cmake_system_linux=false
> >   cmake_machine_parisc=false
> > fi
>
> Now sets an unused 'cmake_system_linux' variable and will never
> set 'cmake_machine_parisc' on non-Linux systems.  Isn't the goal
> for this to work on HP-UX too?
>
> -Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141106/4e97b050/attachment.html>


More information about the cmake-developers mailing list