[BRLTTY] Building outside the source directory
Mario Lang
mlang at delysid.org
Thu Jun 7 07:10:54 EDT 2007
Hi.
I can not build BRLTTY outside its source directory. To reproduce,
do the following:
$ mkdir build && cd build && ../configure && make
The patch below fixes the problems with the drivers, but the python
bindings still fail. The problem is inclusion paths:
brlapi_keycodes.h and brlapi_constants.h are included without their
Programs/ prefix, and therefore the SRC_TOP/Programs and BLD_TOP/Programs
directories need to be added to CFLAGS since BLD_TOP/Programs contains the
generated brlapi_constants.h.
Can please someone look at this and confirm it is the right way to approach
it, and maybe figure out how to make the python bindings follow suit?
Index: config.mk.in
===================================================================
--- config.mk.in (revision 3080)
+++ config.mk.in (working copy)
@@ -33,7 +33,7 @@
INSTALL_ROOT = @install_root@
EXECUTE_ROOT = @execute_root@
-EXTRACFLAGS = -I$(BLD_DIR) -I$(BLD_TOP:/=) -I$(SRC_DIR) -I$(SRC_TOP:/=) @SYSCFLAGS@ @DEFS@
+EXTRACFLAGS = -I$(BLD_DIR) -I$(BLD_TOP:/=) -I$(BLD_TOP:/=)/Programs -I$(SRC_DIR) -I$(SRC_TOP:/=) -I$(SRC_TOP:/=)/Programs @SYSCFLAGS@ @DEFS@
YACC_CFLAGS = @YACC_CFLAGS@
HOSTCC = @CC@
--
CYa,
Mario
More information about the BRLTTY
mailing list