I'm doing some development on the storage manager module of Postgres.
I have added few source files already to the smgr folder, and I was able to
have the Make system includes them by adding their names to the OBJS list
in the Makefile inside the smgr folder. (i.e. When I add A.c, I would add
A.o to the OBJS list).
That was working fine. Now I'm trying to add a new file hdfs_test.c to the
project. The problem with this file is that it requires some extra
directives in its compilation command (-I and -L directives).
Using gcc the file is compiled with the command:
gcc hdfs_test.c -I/HDFS_HOME/hdfs/src/c++/libhdfs
-L/usr/lib/jvm/default-java/jre/lib/i386/server -ljvm -lhdfs -o
I was told that in order to add the extra directives, I need to modify
$LDFLAGS in configure.in and $LIBS in MakeFile.
I read about autoconf and checked configure.in of Postgres but still wasn't
able to know exactly what I should be doing.
pgsql-hackers by date
|Next:||From: Julien Tachoires||Date: 2012-01-25 12:13:59|
|Subject: Re: patch : Allow toast tables to be moved to a different tablespace|
|Previous:||From: Marko Kreen||Date: 2012-01-25 11:08:49|
|Subject: Re: GUC_REPORT for protocol tunables was: Re: Optimize
binary serialization format of arrays with fixed size elements|