Giter Club home page Giter Club logo

Comments (3)

SpartanJ avatar SpartanJ commented on September 23, 2024

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


I don't see anything wrong in the Makefile, it's using += so it's appending any previous data.

I exported the flags before calling make and worked as expected:

#!bash


export LDFLAGS+="-L/usr/local/lib64"
export CFLAGS+="-I/usr/local/include"
make config=release -f efsw-static-lib.make verbose=yes

g++ -I/usr/local/include -MMD -MP -DEFSW_VERBOSE -DNDEBUG -I../../include -I../../src  -O2 -Wall -Wno-long-long  -o "../../obj/linux/release/efsw-static-lib/FileWatcherCWrapper.o" -MF ../../obj/linux/release/efsw-static-lib/FileWatcherCWrapper.d -c "../../src/efsw/FileWatcherCWrapper.cpp"

Regards

from efsw.

SpartanJ avatar SpartanJ commented on September 23, 2024

Original comment by Mihail Slobodyanuk (Bitbucket: mihail_slobodyanuk, ).


It's will be not overriden if you call like:

make CFLAGS="-Os"

see:

https://www.gnu.org/software/make/manual/html_node/Overriding.html

An argument that contains ‘=’ specifies the value of a variable: ‘v=x’ sets the value of the variable v to x. If you specify a value in this way, all ordinary assignments of the same variable in the makefile are ignored; we say they have been overridden by the command line argument.

from efsw.

SpartanJ avatar SpartanJ commented on September 23, 2024

Original comment by Martín Lucas Golini (Bitbucket: SpartanJ, GitHub: SpartanJ).


I understand what you say but... it's not relevant to the project, and the "bug" belongs to premake4 project.

This is a problem on how premake generate the Make files, and it's really easy to solve.

You can solve the issue in three easy ways:

  1. Exporting as i said in the previous post.

  2. Editing the make files generated by premake.

  3. Adding the flags in the premake4.lua file. ( using the commands buildoptions and linkoptions ).

Sadly i can't please everyone, i think this problem doesn't deserve any change to the project. If you wan't you can propose a patch, and i'll take it into consideration.

Regards

from efsw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.