mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 09:14:14 +01:00
PKCS11: Move syslog2stderr.c to programs/test
This commit is contained in:
parent
b91a393a31
commit
d851033e6c
2
programs/.gitignore
vendored
2
programs/.gitignore
vendored
@ -49,7 +49,7 @@ test/ssl_cert_test
|
||||
test/udp_proxy
|
||||
util/pem2der
|
||||
util/strerror
|
||||
util/syslog2stderr.so
|
||||
test/syslog2stderr.so
|
||||
x509/cert_app
|
||||
x509/cert_req
|
||||
x509/crl_app
|
||||
|
@ -278,14 +278,15 @@ x509/req_app$(EXEXT): x509/req_app.c $(DEP)
|
||||
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
ifndef WINDOWS
|
||||
util/syslog2stderr.so: util/syslog2stderr.c
|
||||
echo " CC util/syslog2stderr.c"
|
||||
test/syslog2stderr.so: test/syslog2stderr.c
|
||||
echo " CC test/syslog2stderr.c"
|
||||
$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -ldl
|
||||
endif
|
||||
|
||||
clean:
|
||||
ifndef WINDOWS
|
||||
rm -f $(APPS)
|
||||
rm -f test/syslog2stderr.so
|
||||
else
|
||||
del /S /Q /F *.o *.exe
|
||||
endif
|
||||
|
@ -17,13 +17,13 @@ fi
|
||||
# The SoftHSM library sends error messages to the system logs. If possible, send
|
||||
# the messages to standard error instead, by overloading the logging functions.
|
||||
if [ -n "${TOPDIR+1}" ] &&
|
||||
make -C "$TOPDIR/programs" util/syslog2stderr.so >/dev/null 2>&1
|
||||
make -C "$TOPDIR/programs" test/syslog2stderr.so >/dev/null 2>&1
|
||||
then
|
||||
case $(uname) in
|
||||
Darwin)
|
||||
export DYLD_PRELOAD="${DYLD_PRELOAD-}:$TOPDIR/programs/util/syslog2stderr.so";;
|
||||
export DYLD_PRELOAD="${DYLD_PRELOAD-}:$TOPDIR/programs/test/syslog2stderr.so";;
|
||||
*)
|
||||
export LD_PRELOAD="${LD_PRELOAD-}:$TOPDIR/programs/util/syslog2stderr.so";;
|
||||
export LD_PRELOAD="${LD_PRELOAD-}:$TOPDIR/programs/test/syslog2stderr.so";;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user