Support building ngx_pagespeed as a dynamic module #1115
Support building ngx_pagespeed as a dynamic module #1115
Conversation
This looks very wrong to me, this patch:
|
87ef771
to
297cee1
Compare
@PiotrSikora Updated and force pushed. This will need to be rebased, but does this look better? |
@oschaaf: looks good, but it seems that you also need to modify Also, |
297cee1
to
1748d93
Compare
else | ||
module=ngx_http_range_header_filter_module | ||
# config.make is not executed for dynamic modules | ||
CFLAGS="$CFLAGS -Wno-c++11-extensions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PiotrSikora config.make is not executed for dynamic modules, see https://github.com/nginx/nginx/blob/master/auto/make#L436
So this is the best I can come up with to allow us to build ngx_pagespeed.so with clang
@PiotrSikora Comments addressed & force pushed |
if [ $ngx_module_link != DYNAMIC ]; then | ||
# ngx_module_order doesn't work with static modules, | ||
# so we must re-order filters here. | ||
HTTP_FILTER_MODULES=`echo $HTTP_FILTER_MODULES \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style: this module uses $(...)
for shell commands, so we should be consistent about it.
@oschaaf: thanks, LGTM (other than the stuff that I commented on, which can be mostly ignored). |
As of 1.9.11, nginx supports loading dynamic modules This change makes us support building ngx_pagespeed.so Fixes #1116
1748d93
to
09f5388
Compare
@PiotrSikora Thanks for reviewing! I updated to address your latest comments. |
@oschaaf is this ready to merge? |
@crowell yes |
LGTM, backported and tested on master. |
…c-modules Support building ngx_pagespeed as a dynamic module
As of 1.9.11, nginx supports loading dynamic modules
This change makes us support building ngx_pagespeed.so
Fixes #1116