mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 11:04:24 +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
|
test/udp_proxy
|
||||||
util/pem2der
|
util/pem2der
|
||||||
util/strerror
|
util/strerror
|
||||||
util/syslog2stderr.so
|
test/syslog2stderr.so
|
||||||
x509/cert_app
|
x509/cert_app
|
||||||
x509/cert_req
|
x509/cert_req
|
||||||
x509/crl_app
|
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 $@
|
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) x509/req_app.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
|
||||||
|
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
util/syslog2stderr.so: util/syslog2stderr.c
|
test/syslog2stderr.so: test/syslog2stderr.c
|
||||||
echo " CC util/syslog2stderr.c"
|
echo " CC test/syslog2stderr.c"
|
||||||
$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -ldl
|
$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -f $(APPS)
|
rm -f $(APPS)
|
||||||
|
rm -f test/syslog2stderr.so
|
||||||
else
|
else
|
||||||
del /S /Q /F *.o *.exe
|
del /S /Q /F *.o *.exe
|
||||||
endif
|
endif
|
||||||
|
@ -17,13 +17,13 @@ fi
|
|||||||
# The SoftHSM library sends error messages to the system logs. If possible, send
|
# The SoftHSM library sends error messages to the system logs. If possible, send
|
||||||
# the messages to standard error instead, by overloading the logging functions.
|
# the messages to standard error instead, by overloading the logging functions.
|
||||||
if [ -n "${TOPDIR+1}" ] &&
|
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
|
then
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
Darwin)
|
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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user