Code: Select all
s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if (!$no_shared);
It looks to me that at the line of "Makefile.org" where the start of the line is
Code: Select all
SHARED_LIBS=
Code: Select all
SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)
Then I think the if statement throws away the result if !no_shared evaluates to true. So is this like a perl control structure (i.e. replace-if).
One weird thing that I notice about this is that they throw away the rest of the line. Wouldn't it make more sense to do this?
Code: Select all
s/^SHARED_LIBS=(.*)/SHARED_LIBS=\$1 \$(SHARED_CRYPTO) \$(SHARED_SSL)/ if (!$no_shared);