How to remove (or add?) flags from Antlr3 C runtime building

18 views
Skip to first unread message

Johnny Lee

unread,
Jul 2, 2016, 6:57:32 PM7/2/16
to antlr-discussion
Hi,

I followed instructions to build and install the Antlr3 C runtime from http://www.antlr3.org/api/C/build.html

In a nutshell, there are three steps: (1) ./configure (2) make (3) make install.

The make step, however I would like to fine tune. Specifically, it includes this flag: -Wl,-soname 

How can I get rid of that compilation flag, and is there any problem if I do?

Guessing, maybe the answer is somewhere in the ./configure options, but I cannot figure it out. Any ideas? I made a copy of the configure options: https://slack-files.com/T1J5RREHK-F1NC70MG8-3bc87f0514

Thanks!

Johnny Lee

unread,
Jul 2, 2016, 7:29:18 PM7/2/16
to antlr-discussion
I noticed that "one can override the defaults chosen by using environment variables e.g. CFLAGS, but don't know how to remove it or invalidate it.

Kevin Cummings

unread,
Jul 2, 2016, 10:39:04 PM7/2/16
to antlr-di...@googlegroups.com
On 07/02/16 19:29, Johnny Lee wrote:
> I noticed that "one can override the defaults chosen by using
> environment variables e.g. CFLAGS, but don't know how to /remove/ it or
> invalidate it.

Why not just edit the Makefile?

> On Sunday, 3 July 2016 00:57:32 UTC+2, Johnny Lee wrote:
>
> Hi,
>
> I followed instructions to build and install the Antlr3 C runtime
> from http://www.antlr3.org/api/C/build.html
> <http://www.antlr3.org/api/C/build.html>
>
> In a nutshell, there are three steps: (1) ./configure (2) make (3)
> make install.
>
> The make step, however I would like to fine tune. Specifically, it
> includes this flag: -Wl,-soname
>
> How can I get rid of that compilation flag, and is there any problem
> if I do?
>
> Guessing, maybe the answer is somewhere in the ./configure options,
> but I cannot figure it out. Any ideas? I made a copy of the
> configure
> options: https://slack-files.com/T1J5RREHK-F1NC70MG8-3bc87f0514
> <https://slack-files.com/T1J5RREHK-F1NC70MG8-3bc87f0514>
>
> Thanks!

--
Kevin J. Cummings
kjc...@verizon.net
cumm...@kjchome.homeip.net
cumm...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.linuxcounter.net/)

Johnny Lee

unread,
Jul 3, 2016, 3:35:33 AM7/3/16
to antlr-discussion
(1) The Makefile is a generated file
(2) I cannot find "-Wl,soname" if I do a literal search in the directory; I can't figure out where it is being added to the list of parameters.
(3) A bit off topic, but I am sort of "automating" this installation for a project; if there is a way better than manually moving characters from a file, it'd be a lot better, wouldn't it. I suppose one can read the file and scan lines until you run into the line with the literal "-Wl,soname" and print it back without the "-Wl,soname", if that was the only option; but anyway I can't find it in a literal search.

Jim Idle

unread,
Jul 3, 2016, 7:34:08 AM7/3/16
to antlr-discussion
Standard .configure --help. You can override CFLAGS, LDFLAGS etc via environment or export. 

Jim





--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Idle

unread,
Jul 3, 2016, 7:43:09 AM7/3/16
to antlr-discussion
Did you look at the help? All these things are over ridden in standard ways. You don't need to edit anything. That said, I don't remember assist the flags that you are saying are there, which does not meen that I didnt, but might mean that you have already done something like:

export LDFLAGS=something

I know that it is generated, as I wrote the automake 8?p

Jim





--
Reply all
Reply to author
Forward
0 new messages