Split version files into one line per symbol/directive to allow compatibility
with the Solaris linker without preprocessing and eliminate $ from version file
templates to simplify the postprocessing shell command.
... | ... |
@@ -63,9 +63,7 @@ COMPILE_HOSTC = $(call COMPILE,HOSTCC) |
63 | 63 |
$(Q)echo '#include "$*.h"' >$@ |
64 | 64 |
|
65 | 65 |
%.ver: %.v |
66 |
- $(M)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ | sed -e 's/:/:\ |
|
67 |
-/' -e 's/; /;\ |
|
68 |
-/g' > $@ |
|
66 |
+ $(M)sed 's/MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@ |
|
69 | 67 |
|
70 | 68 |
%.c %.h %.ver: TAG = GEN |
71 | 69 |
|