Skip to contentSkip to conversation

Linking against libpopt is always requited

PATCH Applied Simon Horman 1 participant 2 messages Sep 17, 2012 – Sep 19, 2012

Subsystems (2)
lore
Share & tools
lore

Simon Horman

author maintainer
#0 lore raw

PATCH 1/1 Linking against libpopt is always requited

It used to be the case that ipvsadm could be compiled to use getopt_long rather than libpopt. However, this is no longer the case and linking against libpopt is always requited.

---
 Makefile |   33 +--------------------------------
 1 file changed, 1 insertion(+), 32 deletions(-)
Makefile +0 -30
index 930b29f..6e36d79 100644
@@ -62,39 +62,8 @@ RPMBUILD = $(shell				\
 		echo "/bin/rpm";		\
 	fi )
 
-ifeq (,$(FORCE_GETOPT))
-LIB_SEARCH = /lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib
-POPT_LIB = $(shell for i in $(LIB_SEARCH); do \
-  if [ -f $$i/libpopt.a ]; then \
-    if nm $$i/libpopt.a | fgrep -q poptGetContext; then \
-	echo "-lpopt"; \
-	break; \
-    fi; \
-  fi; \
-done)
-ifeq (,$(POPT_LIB))
-POPT_LIB = $(shell for i in $(LIB_SEARCH); do \
-  f1=""; \
-  for so in $$i/libpopt.so*; do \
-    if [ -f $$so ]; then \
-      if objdump -T $$so | fgrep -q poptGetContext; then \
-	  echo "-lpopt"; \
-	  f1=y; \
-	  break; \
-      fi; \
-    fi; \
-  done; \
-  [ "$$f1" != "" ] && break; \
-done)
-endif
-endif
-
-ifneq (,$(POPT_LIB))
-POPT_DEFINE = -DHAVE_POPT
-endif
author maintainer Applied
#1 lore raw
Quoted 5 lines · Simon Horman

It used to be the case that ipvsadm could be compiled to use getopt_long rather than libpopt. However, this is no longer the case and linking against libpopt is always requited.

Applied