help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to switch behaviour according to glibc version?


From: David Aldrich
Subject: RE: How to switch behaviour according to glibc version?
Date: Tue, 5 Apr 2016 16:24:59 +0000

Hi David

Thanks for your answer to my question. I have one outstanding problem. Part of 
the makefile is now:

ifeq ($(DISTRO),debian)
  verstr := $(ldd --version | head -1 | awk '{print $NF}')
  @echo glibc $(verstr) detected
  ifneq ($(call version_ge,$(verstr),2.22),TRUE)
    @echo "Warning: system glibc is incompatible with Zodiac so using glibc 
from OPEN_SOURCE_LIBS"
    GLIBC=$(OPEN_SOURCE_LIBS)/glibc/v2_22/
    GLIBC_FLAGS= 
-Wl,-rpath=${GLIBC}:${GLIBC}/math:${GLIBC}/elf:${GLIBC}/dlfcn:${GLIBC}/nss:${GLIBC}/nis:${GLIBC}/rt:${GLIBC}/resolv:${GLIBC}/crypt:${GLIBC}/n$
  endif
endif

For the first echo statement I get:

Makefile:236: *** missing separator. Stop.

Please can you suggest how I should correct that line?

Best regards

David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]