Skip to content

Commit

Permalink
Use '-Wl,-bexpall' when linking unittest binaries on AIX
Browse files Browse the repository at this point in the history
Some unittests provide dummy versions of some standard functions
and we need to make sure these take precedence over the real
standard functions in libraries that we are linking with.

Ticket: ENT-4487
Changelog: None
  • Loading branch information
vpodzime committed May 16, 2019
1 parent 5d34db2 commit 5a47750
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ endif
if AIX

check_PROGRAMS += aix_process_test

# We need to use -Wl,-bexpall when linking tests binaries on AIX
# because they provide dummy versions of some standard functions.
set_domainname_test_LDFLAGS = -Wl,-bexpall
evalfunction_test_LDFLAGS = -Wl,-bexpall
aix_process_test_SOURCES = aix_process_test.c \
../../libpromises/process_unix.c \
../../libpromises/process_aix.c \
Expand Down

0 comments on commit 5a47750

Please sign in to comment.