|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../csprng/csprng.conf
|
|
|
|
# Copyright (C) 2013 The OpenSDE Project
|
|
|
|
#
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
# we patch in --disable-http-rng
|
|
|
|
hook_add preconf 9 'autoreconf -vfi'
|
|
|
|
|
|
|
|
# cross-compiling help
|
|
|
|
if atstage cross; then
|
|
|
|
# always assuming a "gnu compatible" malloc
|
|
|
|
var_append configcache ' ' "ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
|
|
|
|
# disable http rng feature because it is implemented in C++
|
|
|
|
# and our stage 0 compile only supports C
|
|
|
|
var_append extraconfopt ' ' "--disable-http-rng"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# if the standalone argp implementation is used because the libc used
|
|
|
|
# is not including argp support, like musl or uClibc we need to tell
|
|
|
|
# the linker about it.
|
|
|
|
if pkginstalled argp-standalone; then
|
|
|
|
var_append configprefix ' ' "LDFLAGS=-largp"
|
|
|
|
fi
|