diff options
author | johannst <johannes.stoelp@gmail.com> | 2020-11-29 16:18:22 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2020-11-29 16:18:22 +0100 |
commit | b7b26c95d89a9221941487ceea0c5389882c3619 (patch) | |
tree | 987f9c7f91a61fe0b4109a94a9c3217224e7a72f /01_dynamic_linking | |
parent | ccd59100139788404a6bcb34e9547137d509b482 (diff) | |
download | dynld-b7b26c95d89a9221941487ceea0c5389882c3619.tar.gz dynld-b7b26c95d89a9221941487ceea0c5389882c3619.zip |
allow to run makefile from different location with `-C`
Diffstat (limited to '01_dynamic_linking')
-rw-r--r-- | 01_dynamic_linking/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/01_dynamic_linking/Makefile b/01_dynamic_linking/Makefile index 50aa0c3..096a8ca 100644 --- a/01_dynamic_linking/Makefile +++ b/01_dynamic_linking/Makefile @@ -9,7 +9,7 @@ inspect: build build: libgreet.c main.c gcc -o libgreet.so libgreet.c -shared -fPIC - gcc -o main main.c -lgreet -L. -Wl,--rpath=$(PWD) + gcc -o main main.c -lgreet -L. -Wl,--rpath=$(CURDIR) clean: rm -f libgreet.so main |