Don't use a symlink where #include would suffice
Absolute symlinks break when the source is moved to another location. In the best case, the symlink will be replaced with a copy, but that creates code duplication. A user who got the packaged source may decide to change one config.c without realizing that another config.c will get the same changes. Don't ignore config.c, it's a regular source file now, albeit very short. Testing done: compiled inside and outside build directory.
This commit is contained in:
parent
ee1a237685
commit
309fca35ac
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,7 +5,6 @@ autom4te.cache/
|
|||||||
ChangeLog
|
ChangeLog
|
||||||
config_ac.h
|
config_ac.h
|
||||||
config_ac-h.in
|
config_ac-h.in
|
||||||
config.c
|
|
||||||
config.guess
|
config.guess
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
|
@ -33,5 +33,4 @@ touch NEWS
|
|||||||
touch AUTHORS
|
touch AUTHORS
|
||||||
touch README
|
touch README
|
||||||
touch ChangeLog
|
touch ChangeLog
|
||||||
ln -s ../config.c $PWD/sesman/tools/config.c
|
|
||||||
autoreconf -fvi
|
autoreconf -fvi
|
||||||
|
1
sesman/tools/config.c
Normal file
1
sesman/tools/config.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include "../config.c"
|
Loading…
Reference in New Issue
Block a user