summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2012-06-13 16:09:25 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2012-06-20 12:29:22 +0200
commit0892a1aefa66f7e5c20a7707f565614b31fc416c (patch)
treeef89e783d27055e38778d85ffaa9422bf5885653 /connectivity
parent15fc21e6ca8f461286ca4bc88ebb74beca54213b (diff)
use commandline parameters instead of bison directives (XCode 2.5)
XCode 2.5 only has ancient bison that doesn't support the %file-prefix, %name-prefix,... directives. So use the more compatible commandline arguments (just like before gbuildification of the module) (cherry picked from commit 874926b2e2b92e5b46e1ece110cac9e40c131baa)
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/Library_dbtools.mk2
-rwxr-xr-xconnectivity/source/parse/sqlbison.y5
2 files changed, 2 insertions, 5 deletions
diff --git a/connectivity/Library_dbtools.mk b/connectivity/Library_dbtools.mk
index 55d74c0c0b8c..93539deb6f33 100644
--- a/connectivity/Library_dbtools.mk
+++ b/connectivity/Library_dbtools.mk
@@ -82,6 +82,8 @@ $(eval $(call gb_Library_add_grammars,dbtools,\
connectivity/source/parse/sqlbison \
))
+$(call gb_YaccTarget_get_target,connectivity/source/parse/sqlbison) : T_YACCFLAGS := -d -l -pSQLyy -bsql
+
$(eval $(call gb_Library_add_scanners,dbtools,\
connectivity/source/parse/sqlflex \
))
diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y
index 87b3f89046c8..2c144e0c2574 100755
--- a/connectivity/source/parse/sqlbison.y
+++ b/connectivity/source/parse/sqlbison.y
@@ -1,8 +1,3 @@
-%file-prefix="sql"
-%name-prefix="SQLyy"
-%no-lines
-%defines
-
%{
//--------------------------------------------------------------------------
//