diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-12-19 09:23:34 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-12-19 09:23:34 +0100 |
commit | ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb (patch) | |
tree | 8ce367e6278b7357dfbbdc9d67f5710755e618f7 /gprofng | |
parent | 8e0eb7c6b35b6f390ba64bbb41e4d2bcf78267ba (diff) | |
download | gdb-ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb.zip gdb-ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb.tar.gz gdb-ecb828308c808f10b5e8f9cbf03aebc7c70ca9fb.tar.bz2 |
gprofng/testsuite: adjust linking of synprog
In order for so_syn.so and so_syx.so to be able to access the main
program's "testtime" variable, that variable needs exposing in the
dynamic symbol table. Since this is a test program only, do it the brute
force way and simply expose all global symbols.
Diffstat (limited to 'gprofng')
-rw-r--r-- | gprofng/testsuite/gprofng.display/synprog/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/testsuite/gprofng.display/synprog/Makefile b/gprofng/testsuite/gprofng.display/synprog/Makefile index 7c50ea2..4c1face 100644 --- a/gprofng/testsuite/gprofng.display/synprog/Makefile +++ b/gprofng/testsuite/gprofng.display/synprog/Makefile @@ -50,7 +50,7 @@ HDRS= \ $(TARGET): $(SRCS) $(HDRS) so_syx.so so_syn.so @echo " ---- Build: $@ -----" - $(CC) $(CFLAGS) -o $@ $(SRCS) -ldl -lc -lrt + $(CC) $(CFLAGS) -Wl,-E -o $@ $(SRCS) -ldl -lc -lrt so_syx.so: $(srcdir)/so_syx.c @echo " ---- Build: $@ -----" |