Skip to content

Commit

Permalink
Added cflags and ldflags to the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhat committed Aug 23, 2014
1 parent 7e32cec commit e8056ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/CONFIGURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Use this task to call the configure script generated by

```XML
<configure dir="${dir.build}" script="${dir.src}/configure" prefix="${dir.install}">
<env key="CFLAGS" value="-02 -g -fomit-frame-pointer" />
<env key="LDFLAGS" value="-Wl,--as-needed,-O1" />

<enable if="ant.build.debug">debug</enable>
<enable>static</enable>
<disable>shared</disable>
Expand Down
2 changes: 1 addition & 1 deletion src/org/jnitasks/autotools/ConfigureTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public void execute() {
if (this.libexec != null) {
command.append(" --libexecdir=");
// TODO Change to getCanonicalPath() when ready to deal with the io exception.
// TODO Make sure the drive letter is lower case.
// TOD<envO Make sure the drive letter is lower case.
String tmpPath = libexec.getAbsolutePath().replace('\\', '/');
if (tmpPath.indexOf(" ") >= 0) {
tmpPath = '"' + tmpPath + '"';
Expand Down

0 comments on commit e8056ed

Please sign in to comment.