From 9442938eccb47578f1dbe5c2824fa2f56f86d00a Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Sat, 1 Feb 2014 21:46:30 +0100
Subject: [PATCH] rpath specification in makefiles

---
 acat/makefile               | 2 +-
 aconvert.automaton/makefile | 2 +-
 aconvert.dot/makefile       | 2 +-
 aconvert.gastex/makefile    | 2 +-
 aconvert.regexp/makefile    | 2 +-
 adeterminize.fsm/makefile   | 2 +-
 adiff.automaton/makefile    | 2 +-
 adiff.grammar/makefile      | 2 +-
 aepsilon/makefile           | 2 +-
 aminimize/makefile          | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/acat/makefile b/acat/makefile
index da9eb04765..6ade75d926 100644
--- a/acat/makefile
+++ b/acat/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=acat
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aconvert.automaton/makefile b/aconvert.automaton/makefile
index fe26e7d652..eca1f70d08 100644
--- a/aconvert.automaton/makefile
+++ b/aconvert.automaton/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aconvert.automaton
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aconvert.dot/makefile b/aconvert.dot/makefile
index 049a23768c..7fc4f89013 100644
--- a/aconvert.dot/makefile
+++ b/aconvert.dot/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aconvert.dot
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aconvert.gastex/makefile b/aconvert.gastex/makefile
index 705d1b7bd2..e9e21a20b5 100644
--- a/aconvert.gastex/makefile
+++ b/aconvert.gastex/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aconvert.gastex
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aconvert.regexp/makefile b/aconvert.regexp/makefile
index 9474e62121..39f1798c2c 100644
--- a/aconvert.regexp/makefile
+++ b/aconvert.regexp/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aconvert.regexp
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/adeterminize.fsm/makefile b/adeterminize.fsm/makefile
index 2432b04ecd..4567989565 100644
--- a/adeterminize.fsm/makefile
+++ b/adeterminize.fsm/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=adeterminize.fsm
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src -I../adeterminize/src
-LDFLAGS= -L../alib/lib -L../adeterminize/lib -lxml2 -lalib -ladeterminize
+LDFLAGS= -L../alib/lib -L../adeterminize/lib -lxml2 -lalib -ladeterminize -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/adiff.automaton/makefile b/adiff.automaton/makefile
index 52c27e2a8c..112e9e1dbe 100644
--- a/adiff.automaton/makefile
+++ b/adiff.automaton/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=adiff.automaton
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/adiff.grammar/makefile b/adiff.grammar/makefile
index 63f9acd233..b850e6b828 100644
--- a/adiff.grammar/makefile
+++ b/adiff.grammar/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=adiff.grammar
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aepsilon/makefile b/aepsilon/makefile
index 6e8c99af5a..f8ca8f76bd 100644
--- a/aepsilon/makefile
+++ b/aepsilon/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aepsilon
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
diff --git a/aminimize/makefile b/aminimize/makefile
index 0a3b760946..e9430cbc2d 100644
--- a/aminimize/makefile
+++ b/aminimize/makefile
@@ -1,7 +1,7 @@
 CC=g++
 EXECUTIBLE=aminimize
 CCFLAGS= -std=c++11 -O2 -c -Wall -I../alib/src 
-LDFLAGS= -L../alib/lib -lxml2 -lalib
+LDFLAGS= -L../alib/lib -lxml2 -lalib -Wl,-rpath,.
 
 SOURCES=$(shell find src/ -name *cpp)
 OBJECTS=$(patsubst src/%.cpp, obj/%.o, $(SOURCES))
-- 
GitLab