Do not obliterate old rpath because it might be used due to read only data sharing. Closes #1619.
parent
0e45134dee
commit
0e47e74a77
6 changed files with 58 additions and 3 deletions
@ -0,0 +1,3 @@ |
||||
int foo() { |
||||
return 0; |
||||
} |
@ -0,0 +1,7 @@ |
||||
# Try to invoke linker constant string deduplication, |
||||
# to ensure we are not clobbering shared strings. |
||||
# Name everything possible just as "foo". |
||||
foolib = shared_library('foo', 'foo.c', |
||||
install_dir : 'foo', |
||||
install : true) |
||||
|
@ -0,0 +1,9 @@ |
||||
project('foo', 'c', |
||||
default_options : 'libdir=lib') |
||||
|
||||
subdir('foo') |
||||
|
||||
executable('prog', 'prog.c', |
||||
link_with : foolib, |
||||
install : true) |
||||
|
@ -0,0 +1,5 @@ |
||||
int foo(); |
||||
|
||||
int main(int argc, char **argv) { |
||||
return foo(); |
||||
} |
Loading…
Reference in new issue