Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | Reproducible build: To avoid build host paths being written into binaries, |
| 2 | accept NETSNMP_CONFIGURE_OPTIONS from the environment. |
| 3 | NETSNMP_CONFIGURE_OPTIONS can be set either null or to a fixed value. |
| 4 | |
| 5 | --- net-snmp-5.8.original/configure.ac 2018-11-20 17:41:39.926529072 +1300 |
| 6 | +++ net-snmp-5.8/configure.ac 2018-11-20 17:54:44.488180224 +1300 |
| 7 | @@ -28,7 +28,7 @@ |
| 8 | # |
| 9 | # save the configure arguments |
| 10 | # |
| 11 | -AC_DEFINE_UNQUOTED(NETSNMP_CONFIGURE_OPTIONS,"$ac_configure_args", |
| 12 | +AC_DEFINE_UNQUOTED(NETSNMP_CONFIGURE_OPTIONS,"${NETSNMP_CONFIGURE_OPTIONS-$ac_configure_args}", |
| 13 | [configure options specified]) |
| 14 | CONFIGURE_OPTIONS="\"$ac_configure_args\"" |
| 15 | AC_SUBST(CONFIGURE_OPTIONS) |