"make clean" cleans too much for static build
Closed / Fixed1016726fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-08-26 10:56:09
in subdir unix/dltest, the Makefile(.in) does (among others)
rm -f ... *${SHLIB_SUFFIX} ...
in a static build, SHLIB_SUFFIX is empty, so doing
make clean once will remove all the contents of
unix/dltest (including the Makefile itself) and thus
any further "make"ing fails (because the Makefile in
that directory is then gone).
Possible solutions:
for static builds, set SHLIB_SUFFIX to something
non-empty, like '.dummy' or something that
would be cleaned anyway, for static builds ('.a')
use expression magic to have "*${SHLIB_SUFFIX}"
disappear if SHLIB_SUFFIX is empty, or wrap
removing of that pattern into some conditional clause.
prepend "lib" to the pattern: lib*${SHLIB_SUFFIX}
I hope one of these is acceptable or some other
solution found.
mdejongplain2004-09-24 03:04:32
Logged In: YES user_id=90858 Added fix to CVS on 2004-09-23. Thanks for reporting the bug Andreas.
Log in (anonymous is fine) to add a comment.