Browse Source

db_mysql: fixing include in Makefile for many paths

- sed matching should break at whitespace, to fix the case when
  mysql_config returns multiple include paths
- reported by FS#503
Daniel-Constantin Mierla 10 năm trước cách đây
mục cha
commit
487d4160b9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/db_mysql/Makefile

+ 1 - 1
modules/db_mysql/Makefile

@@ -21,7 +21,7 @@ endif
 
 ifneq ($(MYSQLCFG),)
 	# use autodetection
-	DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I.*\)\/mysql/\1/g' )
+	DEFS += $(shell $(MYSQLCFG) --include | sed 's/\(-I[^ ]*\)\/mysql/\1/g' )
 	LIBS = $(shell $(MYSQLCFG) --libs)
 else
 	# mysql.h locations (freebsd,openbsd  solaris)