From f2d7b803f16288529bfc97a622ee83e2204085ae Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 21 Jun 2017 10:20:56 +0200 Subject: [PATCH] build: clean up config_fips.gypi Currently when configuring the project using --openssl-fips a gyp include file name config_fips.gypi will be created. If the project is later configured but without the --openssl-fips flag an error will occur. For example: $ ./configure --openssl-fips=bogus $ ./configure && make -j8 ... /node/deps/openssl/fips/fipsld: line 8: /bin/fipsld: No such file or directory Error 127 This commit suggests removing the generate config_fips.gypi when the --openssl-fips flag is not give on the command line. PR-URL: https://github.com/nodejs/node/pull/13837 Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 4fd97f25894448..1c8fa6b7db54cb 100755 --- a/configure +++ b/configure @@ -984,7 +984,10 @@ def configure_openssl(o): ] else: o['variables']['openssl_fips'] = '' - + try: + os.remove('config_fips.gypi') + except OSError: + pass if options.without_ssl: def without_ssl_error(option):