File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ jobs:
109109 defaults :
110110 run :
111111 shell : bash
112+ env :
113+ CFLAGS : " -Wall -Werror"
112114 steps :
113115 - name : Checkout
114116 uses : actions/checkout@v4
@@ -118,7 +120,7 @@ jobs:
118120 for module in advertise/ mod_proxy_cluster/ balancers/ mod_manager/; do \
119121 cd $module; \
120122 sh buildconf; \
121- ./configure CFLAGS="-Wall -Werror" --with-apxs=/usr/local/apache2/bin/apxs; \
123+ ./configure --with-apxs=/usr/local/apache2/bin/apxs; \
122124 make clean; \
123125 make || exit 1; \
124126 cd ..; \
@@ -158,13 +160,15 @@ jobs:
158160 sudo make
159161 sudo make install
160162 - name : Build mod_proxy_cluster and add it to httpd
163+ env :
164+ CFLAGS : " -Wall -Werror"
161165 run : |
162166 ls
163167 cd mod_proxy_cluster/native
164168 for module in advertise/ mod_proxy_cluster/ balancers/ mod_manager/; do \
165169 cd $module; \
166170 sh buildconf; \
167- ./configure CFLAGS="-Wall -Werror" --with-apxs=/usr/local/apache2/bin/apxs; \
171+ ./configure --with-apxs=/usr/local/apache2/bin/apxs; \
168172 make clean; \
169173 make || exit 1; \
170174 sudo cp *.so /usr/local/apache2/modules; \
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ builddir = @CLUSTER_BASE@
1414top_srcdir = @APACHE_BASE@
1515
1616include $(top_builddir ) /build/rules.mk
17- SH_COMPILE = $( LIBTOOL ) --mode=compile $( BASE_CC ) -I ../include -prefer-pic -c $< && touch $@
17+ SHLTCFLAGS += -I $( builddir ) / ../include
1818
1919all : mod_advertise.so
2020
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ top_builddir = @APACHE_BUILDDIR@
99builddir = @CLUSTER_BASE@
1010
1111include $(top_builddir ) /build/rules.mk
12- SH_COMPILE = $( LIBTOOL ) --mode=compile $( BASE_CC ) -I ../include -prefer-pic -c $< && touch $@
12+ SHLTCFLAGS += -I $( builddir ) / ../include
1313
1414all : mod_lbmethod_cluster.so
1515
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ builddir = @CLUSTER_BASE@
1414top_srcdir = @APACHE_BASE@
1515
1616include $(top_builddir ) /build/rules.mk
17- SH_COMPILE = $( LIBTOOL ) --mode=compile $( BASE_CC ) -I ../include -prefer-pic -c $< && touch $@
17+ SHLTCFLAGS += -I $( builddir ) / ../include
1818
1919all : mod_manager.so
2020
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ top_builddir = @APACHE_BUILDDIR@
99builddir = @CLUSTER_BASE@
1010
1111include $(top_builddir ) /build/rules.mk
12- SH_COMPILE = $( LIBTOOL ) --mode=compile $( BASE_CC ) -I ../include -prefer-pic -c $< && touch $@
12+ SHLTCFLAGS += -I $( builddir ) / ../include
1313
1414all : mod_proxy_cluster.so
1515
You can’t perform that action at this time.
0 commit comments