File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ #
4
+ # This script runs configure on each of the CFEngine repositories.
5
+ # It determines which configure options and compiler flags to use based on the dependencies found in compile-options script.
6
+ #
7
+ # The script expects the following repositories to exist side by side:
8
+ # .
9
+ # ├── buildscripts
10
+ # ├── core
11
+ # ├── enterprise
12
+ # ├── nova
13
+ # └── masterfiles
14
+ #
15
+ # ^ When building community you won't need enterprise, nova.
16
+ #
17
+ # The script can be run as follows:
18
+ # ```
19
+ # $ PROJECT=[nova|community] BUILD_TYPE=[DEBUG|RELEASE] EXPLICIT_ROLE=[hub|agent] ./buildscripts/build-scripts/configure
20
+ # ```
21
+ #
22
+
3
23
4
24
. " $( dirname " $0 " ) " /functions
5
25
. detect-environment
6
26
. compile-options
7
27
. version
8
28
29
+ # Make sure the PROJECT variable is set correctly
9
30
case " $PROJECT " in
10
31
community)
11
32
NOVA=no
@@ -86,6 +107,7 @@ case "$ARCH-${OS_FAMILY}" in
86
107
esac
87
108
88
109
110
+ # Select configure options and compiler flags based on BUILD_TYPE
89
111
case " $BUILD_TYPE " in
90
112
RELEASE)
91
113
CFLAGS=" -g2 -O2 -DNDEBUG $CFLAGS "
103
125
104
126
if [ " $OS " = solaris ]
105
127
then
128
+ # Otherwise, we pick wrong pkg-config file (from OS), with a lower version of libxml dependency than we would like to have.
106
129
export PKG_CONFIG_PATH=" $BUILDPREFIX /lib/pkgconfig"
107
130
fi
108
131
You can’t perform that action at this time.
0 commit comments