summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2015-09-06 11:22:38 -0400
committerJason Woodward2015-09-06 11:22:38 -0400
commit26d6a24bf8e501e5da300340b4ad8ca9ceb7b381 (patch)
treefd0d0f7ee633e60abdb5bf0bd2f0e40b18151307
parent376084e44b3e5023c297061825d445f7562551e8 (diff)
downloadslapt-get-26d6a24bf8e501e5da300340b4ad8ca9ceb7b381.tar.gz
do not hardcode libdir
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 32957b1..fe32839 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
PACKAGE=slapt-get
VERSION=0.10.2r
ARCH?=$(shell gcc -dumpmachine | cut -f1 -d- | sed -e "s/i[3456]86/i386/")
-LIBDIR=/usr/lib
+LIBDIR=$(shell dirname $$(gcc -print-file-name=libcrypto.so))
RELEASE=1
CC?=gcc
STRIP?=strip
@@ -29,9 +29,6 @@ ifeq ($(HAS_GPGME),1)
endif
CFLAGS?=-W -Werror -Wall -O2 -ansi -pedantic
CFLAGS+=$(DEFINES) -fPIC
-ifeq ($(ARCH),x86_64)
- LIBDIR=/usr/lib64
-endif
default: $(PACKAGE)