92b0210c08
Fixes RELRO build.
19 lines
494 B
Text
19 lines
494 B
Text
$NetBSD: patch-cstool_Makefile,v 1.2 2018/08/25 14:39:11 wiz Exp $
|
|
|
|
Fix path to the libraries installed.
|
|
|
|
--- cstool/Makefile.orig 2017-03-02 14:21:24.000000000 +0000
|
|
+++ cstool/Makefile
|
|
@@ -6,8 +6,10 @@ include ../functions.mk
|
|
|
|
LIBNAME = capstone
|
|
|
|
-CFLAGS = -I../include
|
|
-LDFLAGS = -O3 -Wall -L.. -l$(LIBNAME)
|
|
+PREFIX ?= /usr
|
|
+LIBDIRARCH ?= lib
|
|
+CFLAGS = -I../include -O3 -Wall
|
|
+LDFLAGS += -Wl,-rpath,$(PREFIX)/$(LIBDIRARCH) -L.. -l$(LIBNAME)
|
|
|
|
TARGET = cstool
|
|
SOURCES := $(wildcard *.c)
|