prereq-build: limit argp/fts/obstack/libintl.h to Linux OS
BSD based OS have different fixup and doesn't require these header.
Limit these Header to Linux based OS.
Fixes: 36bc306ae6 ("prereq-build: add extra check for elfutils required header")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
			
			
This commit is contained in:
		| @@ -204,17 +204,19 @@ $(eval $(call SetupHostCommand,which,Please install 'which', \ | |||||||
| 	/bin/which which, \ | 	/bin/which which, \ | ||||||
| 	which which)) | 	which which)) | ||||||
|  |  | ||||||
| $(eval $(call RequireCHeader,argp.h, \ | ifeq ($(HOST_OS),Linux) | ||||||
|  |   $(eval $(call RequireCHeader,argp.h, \ | ||||||
| 	Missing argp.h Please install the argp-standalone package if musl libc)) | 	Missing argp.h Please install the argp-standalone package if musl libc)) | ||||||
|  |  | ||||||
| $(eval $(call RequireCHeader,fts.h, \ |   $(eval $(call RequireCHeader,fts.h, \ | ||||||
| 	Missing fts.h Please install the musl-fts-dev package if musl libc)) | 	Missing fts.h Please install the musl-fts-dev package if musl libc)) | ||||||
|  |  | ||||||
| $(eval $(call RequireCHeader,obstack.h, \ |   $(eval $(call RequireCHeader,obstack.h, \ | ||||||
| 	Missing obstack.h Please install the musl-obstack-dev package if musl libc)) | 	Missing obstack.h Please install the musl-obstack-dev package if musl libc)) | ||||||
|  |  | ||||||
| $(eval $(call RequireCHeader,libintl.h, \ |   $(eval $(call RequireCHeader,libintl.h, \ | ||||||
| 	Missing libintl.h Please install the musl-libintl package if musl libc)) | 	Missing libintl.h Please install the musl-libintl package if musl libc)) | ||||||
|  | endif | ||||||
|  |  | ||||||
| $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c | $(STAGING_DIR_HOST)/bin/mkhash: $(SCRIPT_DIR)/mkhash.c | ||||||
| 	mkdir -p $(dir $@) | 	mkdir -p $(dir $@) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Marangi
					Christian Marangi