From 269caa8ae18eb33e1286e4c21d434ea07228a619 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 10 Apr 2024 19:37:02 +0000 Subject: deploy: ae498864bb638e597b589c52ff27237835625281 --- development/ldso/samename/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 development/ldso/samename/Makefile (limited to 'development/ldso/samename/Makefile') diff --git a/development/ldso/samename/Makefile b/development/ldso/samename/Makefile new file mode 100644 index 0000000..f35a1e3 --- /dev/null +++ b/development/ldso/samename/Makefile @@ -0,0 +1,13 @@ +all: + mkdir -p foo bar + gcc -g -o foo/lib.so lib.c -shared -fPIC -DNAME=\"foo\" + gcc -g -o bar/lib.so lib.c -shared -fPIC -DNAME=\"bar\" + gcc -g -o main main.c -ldl + ./main foo/lib.so bar/lib.so + LD_LIBRARY_PATH=foo:bar ./main lib.so lib.so + LD_LIBRARY_PATH=bar:foo ./main lib.so lib.so + LD_LIBRARY_PATH=foo ./main lib.so foo/lib.so + LD_LIBRARY_PATH=foo ./main lib.so bar/lib.so + +clean: + $(RM) -r foo bar main -- cgit v1.2.3