Skip to content

Commit ddff0f7

Browse files
authored
Merge pull request #314 from jajik/tweak-build
Improve Makefiles for modules, use environment variables through GH Actions
2 parents 62e87f4 + e0357ab commit ddff0f7

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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; \

native/advertise/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ builddir = @CLUSTER_BASE@
1414
top_srcdir = @APACHE_BASE@
1515

1616
include $(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

1919
all: mod_advertise.so
2020

native/balancers/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ top_builddir = @APACHE_BUILDDIR@
99
builddir = @CLUSTER_BASE@
1010

1111
include $(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

1414
all: mod_lbmethod_cluster.so
1515

native/mod_manager/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ builddir = @CLUSTER_BASE@
1414
top_srcdir = @APACHE_BASE@
1515

1616
include $(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

1919
all: mod_manager.so
2020

native/mod_proxy_cluster/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ top_builddir = @APACHE_BUILDDIR@
99
builddir = @CLUSTER_BASE@
1010

1111
include $(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

1414
all: mod_proxy_cluster.so
1515

0 commit comments

Comments
 (0)