Skip site navigation (1) Skip section navigation (2)

Configuring Postgres to Add A New Source File

From: Tareq Aljabban <tareq(dot)aljabban(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Configuring Postgres to Add A New Source File
Date: 2012-01-25 12:06:02
Message-ID: CAGOe0aKeNzmtGMPRtS8+UaOutewrHVePQOUp5evvaudNTiUXfQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hi,
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
-I/usr/lib/jvm/default-java/include -L/HDFS_HOME/hdfs/src/c++/libhdfs
-L/HDFS_HOME/build/c++/Linux-i386-32/lib
-L/usr/lib/jvm/default-java/jre/lib/i386/server -ljvm -lhdfs -o
hdfs_test

 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.

Thanks

Responses

pgsql-hackers by date

Next:From: Julien TachoiresDate: 2012-01-25 12:13:59
Subject: Re: patch : Allow toast tables to be moved to a different tablespace
Previous:From: Marko KreenDate: 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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group